Home  >  Article  >  Web Front-end  >  [HTML][CSS] The style of adding borders in table (all TDs have thin borders)_html/css_WEB-ITnose

[HTML][CSS] The style of adding borders in table (all TDs have thin borders)_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:48:301279browse

Border style in table (all TDs have thin borders)


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


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn