tr td

8216 ワード

<html>

<body>



<table width="100%" border="1">

  <tr>

    <th>Month</th>

    <th>Savings</th>

  </tr>

  <tr>

    <td colspan="2">January</td>

  </tr>

  <tr> <td colspan="1">January</td>

    <td colspan="1">February</td>



  </tr>

</table>



</body>

</html>

tr:行
td:列
=========行を呼ぶ
||    ||
||    ||
縦2列
http://www.w3school.com.cn/html/html_tables.asp
 
表をwidthを100%に設定した後.「nbsp;」という表を1つ多く書くことができます.列の間隔を変更
    <table cellspacing="20" cellpadding="1" style="margin:10% auto 10% auto;width:100%;">

    <tr><td><label for="firstname"  style="float:right;margin-right:10%;" > </label></td>

         <td><input type="text"  class="form-control" id="admin_name" placeholder=" "/></td></tr>

    <tr><td></td><td><input type="hidden" class="form-control" id="account" />&nbsp;</td></tr>



    <tr><td><label for="age" style="float:right;margin-right:10%;"> </label></td>

         <td><input type="text" class="form-control" id="mobile" placeholder=" " /></td></tr>

    </table>