ul li+ css 实线表格

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/kingtentx/article/details/40654953
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>ul li实线Table</title>
<style type="text/css">
.ultable
{
width: 600px;
}
.ultable ul
{
margin-top: 0;
margin-bottom: 0;
padding-left: 0;
border-top: 1px solid #CCC;
border-left: 1px solid #CCC;
height: 30px;
width: 503px;
}
.ultable ul li
{
float: left;
list-style-type: none;
border-bottom: 1px solid #CCC;
border-right: 1px solid #CCC;
text-align: center;
height: 30px;
line-height: 30px;
}
.w_100
{
width: 100px;
}
.w_150
{
width: 150px;
}
.w_250
{
width: 250px;
}
</style>
</head>
<body>
<div class="ultable">
<ul>
<li class="w_100">姓名</li>
<li class="w_150">性别</li>
<li class="w_250">出生日期</li>
</ul>
<ul>
<li class="w_100">张三</li>
<li class="w_150">男</li>
<li class="w_250">2007-4-30</li>
</ul>
</div>
</body>
</html>
展开阅读全文

没有更多推荐了,返回首页