页面非常清晰的,分为十一部分。整体分为那么三四个div“大”块,然后,在细分为几个div“中”块,在中块下,再进行分为N多个div“小”块。这样,一个日记基本页面就OK了。
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
-
<html xmlns="" xml:lang="en" >
-
<head>
-
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
-
<link type="text/css" href="test.css" rel="stylesheet" />
-
<style>
-
body{
-
background:#00496C;
-
-
color:#666;
-
margin:0 auto;
-
padding:0;
-
}
-
-
-
a{
-
color:#191970;
-
}
-
a:hover{
-
color:#b22222;
-
text-decoration:none;
-
}
-
a:visited{
-
color:#696969;
-
}
-
a acronym{
-
border:none;
-
}
-
acronym{
-
cursor:help;
-
}
-
#container{
-
background:url(images/cover_bot.png) no-repeat left bottom;
-
left:50%;
-
position:absolute;
-
width:770px;
-
margin:10px 0 20px -385px;
-
padding-bottom:120px;
-
}
-
#cent{
-
padding:0 30px;
-
background:url(images/cover.png) repeat-y;
-
padding-bottom:1px;
-
}
-
#page{
-
background:url(images/cover_top.png)no-repeat;
-
margin:0 -30px;
-
}
-
#page h1{
-
background:url(images/csszengarden.jpg) no-repeat;
-
height:71px;
-
width:268px;
-
top:50px;
-
left:71px;
-
position:relative;
-
}
-
#page h1 span{
-
display:none;
-
}
-
#page h2{
-
background:url(images/thebeauty.jpg) no-repeat;
-
position:relative;
-
left:57px;
-
top:55px;
-
height:20px;
-
width:299px;
-
-
}
-
#page h2 span{
-
display:none;
-
}
-
#page p{
-
position:absolute;
-
top:41px;
-
padding:0 0 0 380px;
-
}
-
#page .p1{
-
margin:10px 81px 0 0;
-
font-size:120%;
-
}
-
#page .p2{
-
background:url(images/bookmark.jpg) no-repeat;
-
position:absolute;
-
top:0px;
-
left:620px;
-
width:81px;
-
height:131px;
-
}
-
#page .p2 span{
-
display:block;
-
color:#fff;
-
font:11px/18px"Trebuchet MS",arial,helvetica,sans-serif;
- padding:20px 10px;
-
-
}
-
#page .p2 a{
-
color:#fff;
-
}
-
#page .p2 a:hover{
-
text-decoration:none;
-
color:#ccc;
-
}
-
...
-
...
-
</style>
-
</head>
-
<body>
-
<div id="container">
-
<div id="cent">
-
<div id="page">
-
<h1><span>。。。</span></h1>
-
<h2><span>。。。。</span></h2>
-
-
<p class="。。。">。。。。</p>
-
<p class="。。"><span>。。。 <a href="。。。" title="......">....</a> ...<a href="..." title="...">.....</a></span></p>
-
-
</div>
-
<div id="...">
-
<h3><span>......</span></h3>
-
<p class="....">.......</p>
-
</div>
-
...
-
... /n多个div块,内有标签。/
-
<div id="....">
-
...
-
... /内有n多个div块,内有标签。/
-
</div>
-
....
-
.... /内有n多个div块,内有标签。/
- </div>