div一直在页面底部

<!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="zh-CN" lang="zh-CN">
<head>
<style type="text/css">
html,body {
width:100%;
height:100%;
margin:0px;
padding:0px;
overflow:hidden;
}
#Main {
position:absolute;
bottom:0px;
left:0px;
width:100%;
height:100%;
overflow:auto;
z-index:1;
}
#ToolBar {
position:absolute;
bottom:0px;
right:16px;
width:100%;
height:20px;
text-align:center;
background:#ccc;
z-index:2;
overflow:hidden;
}
</style>
</head>
<body>
<div id="ToolBar">固定在页面底部不动</div>
<div id="Main">
<p><strong>09即将流行的经典语录</strong></p>
<div class="clear">&nbsp;</div>
<div class="info clearfix">
<p class="date">&nbsp;</p>
</div>
<div class="blog_content" id="blog_content">TOP1 <br />
人生的最大遗憾莫过于错误地坚持了不该坚持的,轻易地放弃了不该放弃的&hellip;&hellip; <br />
TOP2 <br />
TOP25 <br />
你看得见我打在屏幕上的字,却看不到我掉在键盘上的泪

</div></body>

</html>

猜你喜欢

转载自wvvw.iteye.com/blog/1754173