IE6下fixed功能(expression)

*html #goTop{
    _position: absolute;
    _bottom:auto;
    _top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,20)||0)-(parseInt(this.currentStyle.marginBottom,20)||0)));
}



其中20表示距右、距右的距离。

你可能感兴趣的:(document,expression)