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


<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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM