当前位置:编程学习 > html/css >>

css 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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
.list0{
 font-size:12px;
 width:220px;
}
.list0 img{
 padding-right:3px;
}
.list0 li{
 border-bottom:dashed 1px #DDD;
 padding-left:5px;
 list-style:none;
 line-height:22px;
 }
.list0 li a{
 color:#666;
 width:70px;
 display:block;
 float:left;
 text-decoration:none;
}
</style>
</head>

<body>
<ul class="list0">
<li><a href="#"><img src="/images/1.gif" width="15" height="11" border="0" />姓名</a> <a href="#">出租(<span class="f-red">12</span>)</a><a href="#">出售(<span class="f-red">13</span>)</a></li>
<li><a href="#"><img src="/images/1.gif" width="15" height="11" border="0" />姓名</a> <a href="#">出租(<span class="f-red">12</span>)</a><a href="#">出售(<span class="f-red">13</span>)</a></li>
<li><a href="#"><img src="/images/1.gif" width="15" height="11" border="0" />姓名</a> <a href="#">出租(<span class="f-red">12</span>)</a><a href="#">出售(<span class="f-red">13</span>)</a></li>
<li><a href="#"><img src="/images/1.gif" width="15" height="11" border="0" />姓名</a> <a href="#">出租(<span class="f-red">12</span>)</a><a href="#">出售(<span class="f-red">13</span>)</a></li>
<li><a href="#"><img src="/images/1.gif" width="15" height="11" border="0" />姓名</a> <a href="#">出租(<span class="f-red">12</span>)</a><a href="#">出售(<span class="f-red">13</span>)</a></li>
<li><a href="#"><img src="/images/1.gif" width="15" height="11" border="0" />姓名</a> <a href="#">出租(<span class="f-red">12</span>)</a><a href="#">出售(<span class="f-red">13</span>)</a></li>
<li><a href="#"><img src="/images/1.gif" width="15" height="11" border="0" />姓名</a> <a href="#">出租(<span class="f-red">12</span>)</a><a href="#">出售(<span class="f-red">13</span>)</a></li>
</ul>
</body>
</html>

补充:Css教程,CSS入门 
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,