码迷,mamicode.com
首页 > 其他好文 > 详细

table中某一个tr边框样式设置

时间:2015-07-11 13:24:15      阅读:120      评论:0      收藏:0      [点我收藏+]

标签:

<html>
<head>
<style type="text/css">
table{ width:500px; }
table tr td{ border-top:#FF0000 solid 1px; width:50%; background-color:#00CC33; text-align:center; line-height:24px;}
</style>
</head>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>2</td>
<td>2</td>
</tr>
</table>
</html> 


border-top:#FF0000 solid 1px;指的要上边框。
border-bottom:#FF0000 solid 1px;指的要下边框。
border-left:#FF0000 solid 1px;指的要左边框。
border-right:#FF0000 solid 1px;指的要右边框。
border:#FF0000 solid 1px;指的要所有边的边框

摘抄至:http://zhidao.baidu.com/question/384112150.html?qbl=relate_question_0&word=%C9%E8%D6%C3table%D6%D0%C4%B3%D2%BB%D0%D0%B5%C4%B1%DF%BF%F2&optimi=4

table中某一个tr边框样式设置

标签:

原文地址:http://www.cnblogs.com/zxgwork/p/4638409.html

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