浏览器(而非IE)中的CSS表达式 [英] CSS expressions in thebrowsers other than IE
本文介绍了浏览器(而非IE)中的CSS表达式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
让我知道
的等效javascript代码
顶部:表达式(this.offsetParent.scrollTop);
我试图将表格行的顶部设置在div内.
因为这在IE
Hi,
let me know the equvalent javascript code for
top: expression(this.offsetParent.scrollTop);
im trying to set the top of table row which(table) is inside div.
as this is not working in other browsers except in IE
推荐答案
以外的其他浏览器中不起作用,您的意思是必须将表格的顶部与div的顶部对齐,对吗?
为什么需要此表达式,可以使用
You mean you have to align the top of the table to top of the div, is it?
The why need this expression, you can use
myTable.style.verticalAlign="top";<br />
不适用于表中表头行的表...
not for table for header row inside table...
这篇关于浏览器(而非IE)中的CSS表达式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文