2014-09-20 48 views
-2

我想創建一個水平線低於。下面是我想達到如何在表標題下添加邊框底部或水平線

Table underline required

我已經創建表和所有使用下面的HTML標記

<table> 
     <tr> 
     <th>Table</th> 
     <th>&#37; of Time Index Used</th> 
     <th>Rows in Table</th> 
     </tr> 
     <tr> 
     <td>tweet_groups</td> 
     <td>67</td> 
     <td>20,488</td> 
     </tr> 
</table> 

那麼,如何添加水平線什麼??

+1

你有沒有嘗試過的事嗎?爲什麼它不適合你? – PeeHaa 2014-09-20 10:25:00

+0

'border-bottom:1px solid#000' – melancia 2014-09-20 10:25:06

+0

我在th上使用了border-bottom,但是它在horziontal lines之間給出了很小的空間.. – 2014-09-20 10:26:32

回答

1
tr:first-child{ border-bottom: 1px solid #555;} 
1
table tr:first-child{border-bottom:1px solid #000;} 
1
th 
{ 
border-bottom: 2px solid #000000; 
}