HTML tfoot charoff 属性

[

HTML <tfoot> charoff 属性
HTML <tfoot> 标签

实例

把 <tfoot> 元素中的内容与字符 "." 向右两个字符的位置对齐:


  

    <table border="1" 

	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>

  

浏览器支持

几乎所有的主流浏览器都不支持 charoff 属性。

定义和用法

HTML5 不支持 <tfoot> charoff 属性。
charoff 属性规定 <tfoot> 元素中的内容相对于由 char 属性规定的字符的对齐偏移量。
仅当 align 属性设置为 "char" 且已设置 char 属性时,才能使用 charoff 属性。

语法

<tfoot charoff="number">

属性值

描述
number 规定对齐方式。
]
转载请保留页面地址:https://www.breakyizhan.com/html/23163.html

posted on 2020-07-07 21:05  MrAit  阅读(120)  评论(0编辑  收藏  举报

导航