阅读文章

用UL实现非Table四行三列布局

[日期:2006-05-28] 来源:  作者: [字体: ]

<!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=gb2312" />
<title>用UL实现非Table四行三列布局</title>
<style type="text/CSS">
ul{
margin:0px;
padding:0px;
width:200px;
}
ul li{
float:left;
list-style-type:none;
border-top:#000 solid 1px;
                border-left:#000 solid 1px;
width:65px;
}
.border-r{
               border-right:#000 solid 1px;
                }
.border-b{
               border-bottom:#000 solid 1px;
                }
.border-l{
               border-right:#000 solid 1px;
               border-bottom:#000 solid 1px;
                }
</style>

</head>

<body>
<ul>
<li>&nbsp;</li>
<li>&nbsp;</li>
<li class="border-r">&nbsp;</li>
</ul>
<ul>
<li>&nbsp;</li>
<li>&nbsp;</li>
<li class="border-r">&nbsp;</li>
</ul>
<ul>
<li>&nbsp;</li>
<li>&nbsp;</li>
<li class="border-r">&nbsp;</li>
</ul>
<ul>
<li class="border-b">&nbsp;</li>
<li class="border-b">&nbsp;</li>
<li class="border-l">&nbsp;</li>
</ul>
</body>
</HTML>



阅读:
录入:blue1000

评论 】 【 推荐 】 【 打印
上一篇:UL-LI 标签结合CSS的运用
下一篇:CSS的常用技巧放送
相关文章      
本文评论
发表评论


点评: 字数
姓名:

  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款