日期:2014-04-20  浏览次数:20975 次

网页制造aiyiweb文章简介:CSS3网页规划实例代码:一直在网页底部代码2则

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>一直在底部(1)</title>
<style>
body{margin:0}
html, body{height:100%}
.wrapper{min-height:100%;_height:100%;margin: 0 auto -100px}
.footer{height:100px;background:#ccc}
.push{height:100px}
</style>
</head>
<body>
<div class="wrapper">
    <p>一直在底部(1)</p>
    <div class="push"></div>
</div>
<div class="footer">版权文字</div> 
</body>
</html>

 

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>一直在底部(2)</title>
<style>
body{margin:0}
html, body{height:100%}
.wrapper{min-height:100%;_height:100%;margin: 0 auto -100px}
.footer{height:100px;background:#ccc}
.push{height:100px}
</style>
</head>
<body>
<div class="wrapper">
    <p>一直在底部(2)</p>
    <div class="push"></div>
</div>
<div class="footer">版权文字</div> 
</body>
</html>&#229;