zclip在表内不起作用 [英] zclip not working inside table
问题描述
我将示例代码放在这里 http://jsfiddle.net/8epWm/2/
I put my example code here http://jsfiddle.net/8epWm/2/
我想在表中的元素上启用zClip,但它不起作用.有什么想法吗?
I want to enable zClip on an element inside a table and it's not working. Any ideas?
推荐答案
表元素在绝对定位方面存在问题,zClip使用绝对定位将Flash影片放置在目标元素之上.
Table elements have trouble with absolute positioning, and zClip uses absolute positioning to place the flash movie on top of the target element.
要解决此问题,您可以在目标元素周围包装一个块级元素(我使用了<div>
),并赋予该position: relative
.
To work around this you can wrap a block level element (I used a <div>
) around the target element, and give that position: relative
.
请参见 http://jsfiddle.net/dloewen/Ny9We/2/一个可行的例子.
See http://jsfiddle.net/dloewen/Ny9We/2/ for a working example.
这篇关于zclip在表内不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!