1. 程式人生 > >[HTML][CSS]table中加邊框的樣式(所有td都加薄邊框)

[HTML][CSS]table中加邊框的樣式(所有td都加薄邊框)

table中加邊框的樣式(所有td都加薄邊框)

  <style type="text/css"> 
	.border-table { 
		border-collapse: collapse; 
		border: none; 
	} 
	.border-table td { 
		border: solid #000 1px; 
	} 
</style>

	<table id="tt" class="border-table">
	<tr>
	 <td rowspan=2>No</td>
	  <td colspan=3>User Info</td>
	</tr>
	<tr>
	  <td>UserCode</td>
	   <td>UserName</td>
	   <td>ID CARD</td>
	</tr>
	<tr>
	 <td>1</td>
	  <td>1001</td>
	  <td>王德封</td>
	  <td>330623***********9</td>
	</tr>
	  <td>2</td>
	  <td>1002</td>
	  <td>王祉臨</td>
	  <td>3301*************9</td>
	</tr>
	</tr>
	  <td>3</td>
	  <td>1003</td>
	  <td>王祉溢</td>
	  <td>3301*************0</td>
	</tr>
	</table>