头闻号

杭州萧山浦阳镇杭波板材店

塑料板(卷)|PP再生料|焊条|综合性公司

首页 > 新闻中心 > 科技常识:IE6中的position:fixed定位兼容性写法分享
科技常识:IE6中的position:fixed定位兼容性写法分享
发布时间:2023-02-01 09:58:24        浏览次数:4        返回列表

今天小编跟大家讲解下有关IE6中的position:fixed定位兼容性写法分享 ,相信小伙伴们对这个话题应该有所关注吧,小编也收集到了有关IE6中的position:fixed定位兼容性写法分享 的相关资料,希望小伙伴们看了有所帮助。

非IE6下的写法大家一般都清楚如何写;这里就不展示了;切入正题 以下的IE6下CSS的兼容性写法:复制代码代码如下:html,* html body{background-image:url(about:blank);background-attachment:fixed;}html .fixed-top{position:absolute;bottom:auto;top:expression(eval(document.documentElement.scrollTop));}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));}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)));}* html .fixed-left{position:absolute;right:auto;left:expression(eval(document.documentElement.scrollLeft));}不信 还不去试试?

来源:爱蒂网