<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=gbk" />
<title>网页底部浮动条代码 兼容IE、火狐浏览器</title>
<style type='text/css'>
html, body {
margin: 0;
padding: 0;
}
body {
/* 这里不能加position: relative */
}
#content {
font-family: 微软雅黑;
font-size: 36px;
line-height: 60px;
width: 960px;
margin: 0 auto;
}
#content p {
text-indent: 2em;
}
#overlay {
opacity: .5;
filter: alpha(opacity=50);
background: #ccc;
width: 100%;
height: 100px;
position: fixed;
_position: absolute;
bottom: 0;
}
</style>
</head>
<body>
<div id='content'>
<p>测试页面
<p>www.v404.cn
<p>网站频道
<p>网页底部浮动条代码 兼容IE、火狐浏览器
<p>测试页面
<p>www.v404.cn </p>
<p>网站频道 </p>
<p>网页底部浮动条代码 兼容IE、火狐浏览器 </p>
<p>测试页面 </p>
<p>www.v404.cn </p>
<p>网站频道 </p>
<p>网页底部浮动条代码 兼容IE、火狐浏览器 </p>
<p>测试页面 </p>
<p>www.v404.cn </p>
<p>网站频道 </p>
<p>网页底部浮动条代码 兼容IE、火狐浏览器 </p>
<p>测试页面 </p>
<p>www.v404.cn </p>
<p>网站频道 </p>
<p>网页底部浮动条代码 兼容IE、火狐浏览器 </p>
<p>测试页面 </p>
<p>www.v404.cn </p>
<p>网站频道 </p>
<p>网页底部浮动条代码 <a href="http://www.v404.cn/search/?/兼容/" title="搜索“兼容”的相关文章" target="_blank">兼容</a>IE、火狐浏览器 </p>
<p>
</div>
<div id='overlay'></div>
<!--[if IE 6]>
<script type="text/javascript">
(function(){
var overlay = document.getElementById('overlay'), t;
window.onscroll = function() {
t && clearTimeout(t);
t = setTimeout(function() {
// reflow
overlay.className = overlay.className;
}, 13);
};
})();
</script>
<![endif]-->
</body>
</html>
在浏览器底部显示的div
最新推荐文章于 2023-08-05 10:16:14 发布