漂亮的表格设计

哈哈,最近发现一个表格设计挺漂亮的,存下档,以便日后之需。

css代码:

.mylist
{
	width: auto;
	height:auto;
	border:1px solid #accdf4;
	margin-top:10px;
	font-family:"宋体";
	font-size:12px;
	color:#155c9f;
	text-align:center;
	border-collapse: collapse;
}
.mylist th
{
	background-color:#d0e4ff;
	text-align:center;
	border-right:1px solid #accdf4; 
	border-bottom:1px solid #accdf4;
	text-align:center;
	height:25px;
	line-height:25px;
	width:100px;
}
.mylist td
{
	border-right:1px solid #accdf4; 
	text-align:center;
	height:25px;
	line-height:25px;
	width:100px;
}

 html代码如下:

<table class="mylist">
   <tr>
      <th>选择</th>
      <th>报送单位</th>
      <th>报送月份</th>
      <th>事故类型</th>
      <th>报送时间</th>
   </tr>
   <tr>
     <td ><input type="checkbox" /></td>
     <td>&nbsp;广州市</td>
     <td>&nbsp;2010年10月</td>
     <td>&nbsp;公路事故月报</td>
     <td>&nbsp;2010年11月8日 17:30</td>
   </tr>
   <tr style="background-color:#eeeeee;">
     <td ><input type="checkbox" /></td>
     <td>&nbsp;广州市</td>
     <td>&nbsp;2010年10月</td>
     <td>&nbsp;公路事故月报</td>
     <td>&nbsp;2010年11月8日 17:30</td>
   </tr>
   <tr>
     <td ><input type="checkbox" /></td>
     <td>&nbsp;广州市</td>
     <td>&nbsp;2010年10月</td>
     <td>&nbsp;公路事故月报</td>
     <td>&nbsp;2010年11月8日 17:30</td>
   </tr>
   <tr style="background-color:#eeeeee;">
     <td ><input type="checkbox" /></td>
     <td>&nbsp;广州市</td>
     <td>&nbsp;2010年10月</td>
     <td>&nbsp;公路事故月报</td>
     <td>&nbsp;2010年11月8日 17:30</td>
   </tr>
</table>

 效果图见附件:

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值