美文网首页
标签的使用

标签的使用
作者: 醉青风 | 来源:发表于2021-08-25 10:20 被阅读0次
标签的使用
  • vue+element ui table表格跳转外部链接
  • elementui中el-table-column里显示两个后台
  • Bootstrap-table请求服务器数据
  • 表格、表单、框架集
  • 表格、给表格添加样式、长表格
  • 表格、表单
  • 一起来学习制作表格
  • HTML表格、表单
  • ElementUI Table中使用 input button等
  • 一个简单的table 实例

    <table border="0"  cellspacing="1" > // 定义一个表格
      <tr>//定义表格行,
        <th>Month</th> //th 定义表头,
        <th>Savings</th>
        <th>Savings</th>
      </tr>
      <tr>
        <td>January</td>//td  定义表格单元
        <td>$100</td>
        <td>$100</td>
      </tr>
    </table>
    
    <style>
    table {
      width: 100%;
      background-color: #ccc;
    }
     td {
      height: 40px;
      line-height: 40px;
      text-align: center;
    }
    tr{
      background-color: #fff;
    }
    </style>
    

    table 常用参数

    属性 说明
    border pixels 规定表格边框的宽度。
    cellpadding * pixels* % 规定单元边沿与其内容之间的空白。
    cellspacing * pixels* % 规定单元格之间的空白。

    tb常用参数

    属性 说明
    colspan number 规定单元格可横跨的列数。
    rowspan number 规定单元格可横跨的行数。

    相关文章