DIV CSS 佈局教程網

 DIV+CSS佈局教程網 >> 網頁腳本 >> WEB網站前端 >> WEB前端代碼 >> HTML初學簡單頁面結構
HTML初學簡單頁面結構
編輯:WEB前端代碼     
查看效果:
http://hovertree.com/texiao/css/26/

代碼如下:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>頁面結構練習_何問起</title>
<base target="_blank" />
<style>
body {
background: #CCC;
}
.index {
max-width: 90%;
background: #3F0;
margin: 0px auto;
}
.head {
width: 100%;
height: 60px;
}
.head a {
min-width: 12.5%;
height: auto;
background: #4A69A6;
color: #FFF;
font-size: large;
display: block;
text-align: center;
float: right;
margin-top: 2%;
}
.main {
width: 100%;
min-height: 600px;
background: #FFFFFF;
text-align:center;
}
.foot {
width: 100%;
background-color: cadetblue;
min-height: 60px;
text-align:center;font-family:Arial, Helvetica, sans-serif;
}.foot a{color:white;}
</style>
</head>

<body>
<div id="index">
<div class="index">
<div class="head">
<a href="http://hovertree.com/">進入官網</a>
</div>
<div class="main">
</div>
<div class="foot">&copy; <a href="http://hovertree.com/texiao/css/26/">版權所有</a></div>
</div>
</div>
</body>
</html>
XML學習教程| jQuery入門知識| AJAX入門| Dreamweaver教程| Fireworks入門知識| SEO技巧| SEO優化集錦|
Copyright © DIV+CSS佈局教程網 All Rights Reserved