网站首页  汉语字词  英语词汇  考试资料  写作素材  旧版资料

请输入您要查询的范文:

 

标题 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));}
随便看

 

在线学习网范文大全提供好词好句、学习总结、工作总结、演讲稿等写作素材及范文模板,是学习及工作的有利工具。

 

Copyright © 2002-2024 cuapp.net All Rights Reserved
更新时间:2025/5/18 17:26:45