rowspan属性可以与HTML表中的<td>和<th>元素一起使用。
	  rowspan属性与<td>标签一起使用时,rowspan属性决定了它应跨越的标准单元格数。
	  当rowspan属性与<th>标签一起使用时,rowspan属性确定它应该跨越的标题单元格的数量。
	  下面我们来看具体的示例
	  与<td>标签一起使用
	  代码如下
	  <!DOCTYPEhtml>
	  <html>
	  <head>
	  <title>HTMLrowspan</title>
	  <style>
	  table,th,td{
	  border:1pxsolidblack;
	  border-collapse:collapse;
	  padding:6px;
	  }
	  </style>
	  </head>
	  <bodystyle="text-align:center">
	  <table>
	  <tr>
	  <th>Name</th>
	  <th>Age</th>
	  </tr>
	  <tr>
	  <td>Tom</td>
	  <!--Thiscellwilltakeupspaceon
	  tworows-->
	  <tdrowspan="2">24</td>
	  </tr>
	  <tr>
	  <td>Marry</td>
	  </tr>
	  </table>
	  </body>
	  </html>
	
	
	
	
	
	
本文转载自中文网
	
	 
     
本文转载自中文网
如需转载,请注明文章出处和来源网址:http://www.divcss5.com/html5/h54233.shtml








