HTML <tfoot> 标签charoff属性

  • <tfoot>标签charoff属性定义和用法

    HTML5中不支持<tfoot> charoff属性。
    charoff属性设置<tfoot>元素内的内容将与char属性指定的字符对齐的字符数。
    只有在指定char属性且align属性设置为“char”时,才能使用charoff属性。

  • <tfoot>标签charoff属性浏览器支持

    Edge/IE Chrome FireFox Safari Opera
    不支持 不支持 不支持 不支持 不支持
  • HTML4.01和HTML5之间的差异

    在HTML5不支持<tfoot>标签charoff属性。

  • <tfoot>标签charoff属性语法

    <tfoot charoff="number">

  • <tfoot>标签charoff属性实例

    <table style="width:100%">
        <tr>
          <th>Month</th>
          <th>Savings</th>
        </tr>
        <tr>
          <td>January</td>
          <td>$100</td>
        </tr>
        <tr>
          <td>February</td>
          <td>$80</td>
        </tr>
      <tfoot align="char" char="." charoff="2">
        <tr>
          <td>Sum</td>
          <td>$180.00</td>
        </tr>
      </tfoot>  
    </table>
    尝试一下
  • <tfoot>标签charoff属性的值

    描述
    number 指定对齐方式。
    正数指定字符右侧的对齐方式。
    负数指定字符左侧的对齐方式。