zoukankan      html  css  js  c++  java
  • IE6 css fixed

     1 .fixed-top{position:fixed;bottom:auto;top:0px;}
     2 .fixed-bottom{position:fixed;bottom:0px;top:auto;}
     3 .fixed-left{position:fixed;right:auto;left:0px;}
     4 .fixed-right{position:fixed;right:0px;left:auto;}
     5 /* IE6 */
     6 * html,* html body{background-image:url(about:blank);background-attachment:fixed;}
     7 * html .fixed-top{position:absolute;bottom:auto;top:expression(eval(document.documentElement.scrollTop));}
     8 * html .fixed-right{position:absolute;right:auto;left:expression(eval(document.documentElement.scrollLeft+document.documentElement.clientWidth-this.offsetWidth)-(parseInt(this.currentStyle.marginLeft,10)||0)-(parseInt(this.currentStyle.marginRight,10)||0));}
     9 * html .fixed-bottom{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)));}
    10 * html .fixed-left{position:absolute;right:auto;left:expression(eval(document.documentElement.scrollLeft));}
  • 相关阅读:
    前端之script标签注意事项
    前端之常用网址的整理
    前端之清除浮动
    三元表达式
    迭代器 生成器
    文件处理流程
    python中常见的内置函数
    匿名函数lambda
    模拟问路场景理解递归
    create auto increment row with select in postgreSQL
  • 原文地址:https://www.cnblogs.com/vonly/p/3054732.html
Copyright © 2011-2022 走看看