*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表示距右、距右的距离。
本文介绍了一种使用CSS表达式实现元素定位的方法,通过设置特定样式使元素能够根据滚动条位置自动调整其在页面上的显示位置。
654

被折叠的 条评论
为什么被折叠?



