[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>


你可能感兴趣的:([HTML][CSS]table中加边框的样式(所有td都加薄边框))