1
<!--[if IE6]>
#refresh{
position:absolute;
left:expression(eval(document.documentElement.scrollLeft+document.documentElement.clientWidth-this.offsetWidth)-(parseInt(this.currentStyle.marginLeft,10)||0)-(parseInt(this.currentStyle.marginRight,10)||100));
top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||50)));
}
<![endif]-->
该代码块打算解决IE6不承认<!--[if IE6]>块不工作
位置的问题:固定的;
但它不会运行,除非我在if块中添加一些东西。
<!--[if IE6]>
body{}//just like this
#refresh{
position:absolute;
left:expression(eval(document.documentElement.scrollLeft+document.documentElement.clientWidth-this.offsetWidth)-(parseInt(this.currentStyle.marginLeft,10)||0)-(parseInt(this.currentStyle.marginRight,10)||100));
top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||50)));
}
<![endif]-->
你能告诉我为什么发生了吗?
请指定在找你做编码 –
这是一个CSS代码块的语言。 –