欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

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

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

復(fù)制代碼
代碼如下:

/* 修正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 右側(cè)固定 */
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 左側(cè)固定 */
* html .fixed-left{position:absolute;right:auto;left:expression(eval(document.documentElement.scrollLeft));}

不信?還不去試試?

相關(guān)文章

最新評論