尽管觉得这个东西基本不用写了,但是为毛这几天总出现这个问题,总需要写他呢,所以再发一下啦~
.ie
6
fixedTL{
position
:
fixed
;
left
:
0
;
top
:
0
}
.ie
6
fixedBR{
position
:
fixed
;
right
:
0
;
bottom
:
0
}
* html,* html body{
background-image
:
url
(about:blank);
background-attachment
:
fixed
}
* html .ie
6
fixedTL{
position
:
absolute
;
left
:expression_r(eval_r(document.documentElement.scrollLeft));
top
:expression_r(eval_r(document.documentElement.scrollTop))}
* html .ie
6
fixedBR{
position
:
absolute
;
left
:expression_r(eval_r(document.documentElement.scrollLeft+document.documentElement.clientWidth-this.offsetWidth)-(parseInt(this.currentStyle.marginLeft,
10
)||
0
)-(parseInt(this.currentStyle.marginRight,
10
)||
0
));
top
:expression_r(eval_r(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,
10
)||
0
)-(parseInt(this.currentStyle.marginBottom,
10
)||
0
)))}
|
来源:http://www.cnblogs.com/hooray/archive/2011/05/20/2052269.html