CSS hack mark

除IE6浏览器的通用方法

1
2
.ie6fixedTL{position:fixed;left:0;top:0} 
.ie6fixedBR{position:fixed;right:0;bottom:0}

IE6浏览器的特有方法

1
2
3
4
5
6
7
8
9
10
11
html .ie6fixedTL{
position:absolute;
left:expression(eval(document.documentElement.scrollLeft));
top:expression(eval(document.documentElement.scrollTop))
}

html .ie6fixedBR{
position:absolute;
left:expression(eval(document.documentElement.scrollLeft+document.documentElement.clientWidth-this.offsetWidth)-(parseInt(this.currentStyle.marginLeft,10)0)-(parseInt(this.currentStyle.marginRight,10)0));
top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)0)-(parseInt(this.currentStyle.marginBottom,10)0)))
}

CSS hack mark
https://cszy.top/2015-11-19 css-hack-mark/
作者
csorz
发布于
2015年11月19日
许可协议