HTML中表格的单元格(水平或垂直方向)合并

  • Post author:
  • Post category:其他


<!DOCTYPE html>
<html>
	<meta charset="utf-8">
    <head>表格合并(水平和垂直方向)</head>
    <base target="_self">
    <body>
    	<!--初始表格-->
    	<table align="center" border="1" cellpadding="2" cellspacing="2" width="300px" height="100px">
        <tr>
        	<td>北京</td>
            <td>上海</td>
            <td>济宁</td>
        </tr>
        <tr>
        	<td>深圳</td>
            <td>广州</td>
            <td>泰安</td>
        </tr>
        </table>
        <!--水平方向上的合并-->
        <br><br><br><br><br>
        <table align="center" border="1" cellpadding="2" cellspacing="2" width="300px" height



版权声明:本文为Ameir_yang原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。