简要咨询咨询QQ网站导航网站搜索手机站点联系我们设为首页加入收藏 

ie6中的position:fixed定位兼容性写法分享

来源:易贤网   阅读:1121 次  日期:2016-06-20 08:54:03

温馨提示:易贤网小编为您整理了“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));}

更多信息请查看网页制作
点此处就本文及相关问题在本站进行非正式的简要咨询(便捷快速)】     【点此处查询各地各类考试咨询QQ号码及交流群
上一篇:a标签中写有文字如何隐藏文字显示图片兼容360模式渲染
下一篇:html中position的一个小用法使用介绍
易贤网手机网站地址:ie6中的position:fixed定位兼容性写法分享
由于各方面情况的不断调整与变化,易贤网提供的所有考试信息和咨询回复仅供参考,敬请考生以权威部门公布的正式信息和咨询为准!