xhtml:
<div class="editorChoose">
<h1></h1>
<div class="edRight"> </div>
<div class="edLeft"> </div>
<div class="edBottom"></div>
</div>
css:
@import url("http://www.07art.com/public/public.css");
.editorChoose{width:591px;height:400px;border:1px solid #aaa;background:#fff;}
/*TOP内容*/
.editorChoose h1{height:30px;line-height:30px;border-bottom:1px solid #aaa;text-align:center;font-weight:bold;color:#000;background:#efefef;}
/*LEFT内容*/
.edLeft{float:left;width:142px;height:317px;border-right:1px solid #aaa;overflow:auto;}
/*RIGHT内容*/
.edRight{float:right;width:448px;height:317px;overflow:auto;}
/*BOTTOM内容*/
.edBottom{clear:both;padding-top:15px;height:35px;border-top:1px solid #aaa;text-align:center;background:#efefef;}
骨骼出来了,接下来我们该在骨骼上添加"血"遇"肉",这样才算完整的.
相对应的css
.editorChoose h1{height:30px;line-height:30px;border-bottom:1px solid #aaa;text-align:center;font-weight:bold;color:#000;background:#efefef;}/*文字居中*/
.editorChoose h1 img{float:right;margin:8px 10px 0px 0px;}/*图片居右*/
相对应的css
.edRight div{width:95px;padding:18px 0px 12px 10px;float:left;}
.edBottom{clear:both;padding-top:15px;height:35px;border-top:1px solid #aaa;text-align:center;background:#efefef;}
xhtml:
<h2><span>相册列表</span></h2>
<ul>
<li><a href="#">我的一家幸福生活</a></li>
<li><a href="#">包身工是怎么死的?</a></li>
<li><a href="#">杨文你真是个混蛋!</a></li>
<li class="background"><a href="#">小白被抛弃</a></li>
<li><a href="#">我的一家幸福生活</a></li>
<li><a href="#">栀子花开</a></li>
<li><a href="#">我的野蛮女友</a></li>
<li><a href="#">蓝色生死恋</a></li>
<li><a href="#">这该死的爱</a></li>
<li><a href="#">湖南大学</a></li>
<li><a href="#">新一佳</a></li>
<li><a href="#">新一佳</a></li>
<li><a href="#">新一佳</a></li>
<li><a href="#">新一佳</a></li>
<li><a href="#">新一佳</a></li>
</ul>
css:
.edLeft h2{padding:1px 1px 0px 1px;height:26px;border-bottom:1px solid #aaa;}
.edLeft h2 span{text-align:center;height:25px;background:#BFBDBD;color:#000;text-align:center;font-weight:bold;line-height:25px;display:block;}
.edLeft{float:left;width:142px;height:317px;border-right:1px solid #aaa;}
.edLeft ul{height:290px;overflow:auto;}
.edLeft li{height:27px;line-height:27px;border-bottom:1px solid #aaa;padding-left:10px;}
.edLeft li a{color:#000;}
.edLeft li a:link,.edLeft dd a:visited{text-decoration:none;}
.edLeft li a:hover{text-decoration:underline;}
.edLeft li.background{background:#ECEBEB;}
相对应的css
.edBottom input{width:37px;height:22px;color:#000;border:1px solid #555;background:#aaa;}
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]