码迷,mamicode.com
首页 > 其他好文 > 详细

ie6 fixed不兼容

时间:2014-10-20 16:34:07      阅读:152      评论:0      收藏:0      [点我收藏+]

标签:style   io   os   sp   on   html   ef   bs   htm   

处理方式
<!--[if IE 6]>
<style type="text/css">
html{overflow:hidden}
body{height:100%;overflow:auto}
</style>
<![endif]-->
但是会让页面上的relative 和 position 定位都变成 fixed 定位

 

用expression 可以让ie实现页面固定,但是是设置absolute实现,会出现抖动,通过 设置 background-image 解决

* html,* html body{background-image:url(about:blank); background-attachment:fixed}
* html .box{
position:absolute;left:expression(eval(document.documentElement.scrollLeft+100));
top:expression(eval(document.documentElement.scrollTop+100))

ie6 fixed不兼容

标签:style   io   os   sp   on   html   ef   bs   htm   

原文地址:http://www.cnblogs.com/bigdesign/p/4037226.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!