zoukankan      html  css  js  c++  java
  • IE6 固定定位

    非IE6的浏览器都可以直接使用 fixed 实现固定定位。

    针对IE6:(定位在上方)

    #toTop{
        _position:absolute;
        _bottom:auto;
        _top:expression(eval(document.documentElement.scrollTop));
    }

    (定位在下方)

    #toTop{
        _position:absolute;
        _bottom:auto;
        _top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0)));
    }
    高否?富否?帅否? 否? 滚去学习!
  • 相关阅读:
    传纸条
    金明的预算方案
    矩阵取数
    能量项链
    选择客栈
    过河
    乌龟棋
    逢低吸纳
    三角形牧场
    多米诺骨牌
  • 原文地址:https://www.cnblogs.com/baixc/p/3500248.html
Copyright © 2011-2022 走看看