div层绝对底部代码推荐
div层绝对底部代码推荐
绝对底部代码复制保存html即可使用:查看效果
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>绝对底部代码—35ui.cn</title>
</head>
<style type="text/css">
*html{
background-image:url(about:blank);
background-attachment:fixed;
}/*ie6 position:fixed问题解决*/
body {
font-family:Verdana, Arial, Helvetica, sans-serif;
text-align:left;
font-size:12px;
background-color:#FAFAFA;
position:relative;
}
.bottom_link
{ position:fixed; width:960px; bottom:0px;_position:absolute;_bottom:auto; background:#CCC; left:50%; margin-left:-480px; height:100px;
_top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0)));}
</style>
<body>
<div class="bottom_link">55
</div>
</body>
</html>
上一条: 最新CDN托管的JQUERY库地址大全
下一条: 选项卡自动切换代码|自动轮播js源码