亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

IE6中的position:fixed定位兼容性寫法分享

  發(fā)布時間:2014-05-12 09:56:42   作者:佚名   我要評論
這篇文章主要介紹了IE6中的position:fixed定位兼容性寫法分享,需要的朋友可以參考下
非IE6下的寫法大家一般都清楚如何寫;這里就不展示了;
切入正題,以下的IE6下CSS的兼容性寫法:

復制代碼
代碼如下:

/* 修正IE6振動bug */
html,* html body{background-image:url(about:blank);background-attachment:fixed;}
/* IE6 頭部固定 */
html .fixed-top{position:absolute;bottom:auto;top:expression(eval(document.documentElement.scrollTop));}
/* IE6 右側固定 */
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));}
/* IE6 底部固定 */
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)));}
/* IE6 左側固定 */
* html .fixed-left{position:absolute;right:auto;left:expression(eval(document.documentElement.scrollLeft));}

不信?還不去試試?

相關文章

最新評論