Home > Web Front-end > HTML Tutorial > [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
Release: 2016-06-24 11:48:30
Original
1301 people have browsed it

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>
Copy after login

	<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>
Copy after login


source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template