IE6 CSS Fixed 固定位置 防闪屏
来源:互联网 发布:蔬菜交易软件 编辑:程序博客网 时间:2024/04/30 17:12
让层一直固定在页面上,常用的四个角代码,加入仿闪屏样式,稍加修改即可使用。
.fixed-top{position:fixed;bottom:auto;top:0px;}.fixed-bottom{position:fixed;bottom:0px;top:auto;}.fixed-left{position:fixed;right:auto;left:0px;}.fixed-right{position:fixed;right:0px;left:auto;}/* IE6 */* 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));}
更详细的请移步这里:CSS hack 解决 IE6 Fixed 不兼容和闪屏的问题 讲解两种方法(加减法和浮动法)实现IE6下固定位置,并附多种实际用例代码。
0 0
- IE6 CSS Fixed 固定位置 防闪屏
- css固定元素位置(fixed)
- css固定元素位置(fixed)
- IE6 css fixed
- 兼容ie6、ie7、ff的css顶端固定位置定位
- 固定位置浮动 DIV 不抖动 IE6 IE7 CSS 写法
- 固定位置浮动 DIV 不抖动 IE6 IE7 CSS 写法
- css 兼容ie6,ie7,ff的fixed,元素上下端固定定位方法
- IE6 position:fixed bug (固定窗口方法)
- 解决 IE6 position:fixed 固定定位问题
- 解决 IE6 position:fixed 固定定位问题
- 解决 IE6 position:fixed 固定定位问题
- 解决 IE6 position:fixed 固定定位问题
- IE6 position:fixed 固定定位问题
- CSS固定定位{position:fixed}
- IE6中固定div位置
- Fixed固定位置的悬浮div层
- CSS固定图片位置
- 2568:前进
- Canny边缘检测原理
- Servlet-监听器Listener
- 集成项目经理在工作中的常见改进点
- spring data jpa使用二级缓存
- IE6 CSS Fixed 固定位置 防闪屏
- 如何让一个程序员变成产品经理?
- Servlet-模块化开发web fragment
- WAV文件格式分析
- 黑马程序员--protocol代理模式
- android图像图像处理——自定义组件的属性
- Servlet-文件上传@MultipartConfig,Part
- iOS9 HTTP 不能正常使用的解决办法
- 级联菜单-初始化