table 如何給tr border顏色


border-collapse屬性值

說明
separate 默認值,邊框分開,不合並
collapse 邊框合並,如果相鄰,則共用一個邊框

 

table,th,td{border:1px solid gray}
table{border-collapse:collapse;}
只有collapse才能設置border顏色
如下css為

.linktable{border-collapse: collapse;}
.linktable tr{border-bottom: 1px solid #eeeeee;}
.linktable td{border-right: 2px solid #fff;}
.titlebg{background-color:#99FFFF;}
<table cellspacing="1" cellpadding="0" class="linktable">
 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



猜您在找 Vue 修改 elementUI table tr th 的高度,以及背景顏色 table 中的tr 行點擊 變換顏色背景 CSS中table tr:nth-child(even)改變tr背景顏色: IE7,8無效 在html5中不支持 table的border重合問題 html之table的tr加間隔 WPF使用四邊不同顏色的Border HTML中table,tr,td table中tr間距的設定
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM
的cellpadding 和 cellspacing ; 2) 如何用css實現 cellpadding, cellspacing ; 3) tr , th 是 有 border, 沒有 padding 的. 用css來設置table的border