zoukankan      html  css  js  c++  java
  • [HTML]表格的一切

    如何设置HTML页面自适应宽度的table(表格):

    <table width="95%" border="1" cellpadding="2" cellspacing="1">
      <tr>
        <td width="50px" nowrap>序号</td>
        <td width="150px" nowrap>分类A</td>
        <td width="150px" nowrap>分类B</td>
        <td width="200px" nowrap>名称</td>
        <td nowrap>说明</td>
        <td width="100px" nowrap>操作</td>
      </tr>
    </table>

    跨行跨列

    <html>
    
    <body>
    
    <h4>横跨两列的单元格:</h4>
    <table border="1">
    <tr>
      <th>姓名</th>
      <th colspan="2">电话</th>
    </tr>
    <tr>
      <td>Bill Gates</td>
      <td>555 77 854</td>
      <td>555 77 855</td>
    </tr>
    </table>
    
    <h4>横跨两行的单元格:</h4>
    <table border="1">
    <tr>
      <th>姓名</th>
      <td>Bill Gates</td>
    </tr>
    <tr>
      <th rowspan="2">电话</th>
      <td>555 77 854</td>
    </tr>
    <tr>
      <td>555 77 855</td>
    </tr>
    </table>
    
    </body>
    </html>
  • 相关阅读:
    kvm virtio
    GPU 线程块/线程束
    ubuntu source
    React
    分布式系统
    honpeyhonepy
    css是干什么的
    bootstrap中的横的列
    数据安全之 alert logic
    viewset的使用的方法
  • 原文地址:https://www.cnblogs.com/lyggqm/p/5732994.html
Copyright © 2011-2022 走看看