首页 > 代码库 > html中表格与输入域常用元素总结

html中表格与输入域常用元素总结

<!doctype html>
<html>
   <head>
      <meta http-equiv="content-type" charset="utf-8";>
      <title></title>
   </head>
   <body>
      <table>
         <thead>*表头
            <tr>
               <td>THEAD 中的文本</td>
            </tr>  
         </thead>

         <tfoot>*表脚
            <tr>
               <td>TFOOT 中的文本</td>
            </tr>
         </tfoot>
         
         <tbody>*表身
            <caption>这是一个表头</caption>
               <tr> 
                  <th colspan="几列"; rowspan="几行">表中的表头单元格</th>
                  <th>表中的表头单元格</th>
                  <th>表中的表头单元格</th>
                  <th>表中的表头单元格</th>
              </tr>
              <tr>
                 <td colspan="几列"; rowspan="几行">单元格</td>
                 <td>单元格</td>
                 <td>单元格</td>
                 <td>单元格</td>
             </tr>
          <tbody>
       </table>
       <input ontufocus="ture";*获得焦点 name="名称";type="输入域类型"; value="http://www.mamicode.com/默认值";placeholder="背景文字";id="唯一地址/数据库关系值";>
       <textarea ontufocus="ture";*获得焦点 cols="可见列数";rows="可见行数";name="名称";id="唯一地址/数据库关系值";></textarea>
   </body>
</html>


本文出自 “AidanDai” 博客,请务必保留此出处http://562097645.blog.51cto.com/9361855/1561069

html中表格与输入域常用元素总结