码迷,mamicode.com
首页 > Web开发 > 详细

利用CSS边框合并属性打造table细边框

时间:2014-10-28 17:29:54      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:style   代码   html   line   htm   table   c   css   height   

CSS代码:

<style>
table{
     border-collapse: collapse;/* 边框合并属性  */
	 width:200px;
}
th{
     border: 1px solid #666666;
}
td{
     border: 1px solid #666666;
}
</style>
HTML代码:

<table>

<tr>
<th></th>

<th></th>
	</tr>
	<tr>
		<td></td>
		<td></td>
	</tr>
	<tr>
		<td></td>
		<td></td>
	</tr>
	<tr>
		<td></td>
		<td></td>
	</tr>
</table>

利用CSS边框合并属性打造table细边框

标签:style   代码   html   line   htm   table   c   css   height   

原文地址:http://www.cnblogs.com/sunny-539/p/4057249.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!