IE6 position:fixed IE6支持position:fixed完美解决办法

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

IE6 position:fixed IE6支持position:fixed完美解决办法

  2021-03-17 我要评论
想了解IE6支持position:fixed完美解决办法的相关内容吗,在本文为您仔细讲解IE6 position:fixed的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:IE6,position:fixed,下面大家一起来学习吧。
今天去一老外站看到了这他站上的十分平滑但却没有js,好奇,原来。。巧妙啊,分享下,相对而言比较节省资源。但效果好,使用方便,兼顾w3c。哈哈

复制代码 代码如下:

<!-- compliance patch for microsoft browsers -->
<!--[if lt IE 7]><link rel="stylesheet" href="ie-stuff.css" type="text/css" media="screen"/><![endif]-->


ie-stuff.css

复制代码 代码如下:

#footer {
position: absolute;
bottom: auto;
clear: both;
top:e­xpression(eval(document.compatMode &&
document.compatMode=='CSS1Compat') ?
documentElement.scrollTop
+(documentElement.clientHeight-this.clientHeight) - 1
: document.body.scrollTop
+(document.body.clientHeight-this.clientHeight) - 1);
}

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们