zclip not working inside table

2019-02-11 22:01发布

问题:

I put my example code here http://jsfiddle.net/8epWm/2/

I want to enable zClip on an element inside a table and it's not working. Any ideas?

回答1:

Table elements have trouble with absolute positioning, and zClip uses absolute positioning to place the flash movie on top of the target element.

To work around this you can wrap a block level element (I used a <div>) around the target element, and give that position: relative.

Edit: See http://jsfiddle.net/dloewen/Ny9We/2/ for a working example.



回答2:

I might also add -- I found that if a z-index is set on the target element, it breaks the functionality of zClip (it's covering the flash element).



标签: jquery zclip