charoff
HTML <thead> charoff 属性
把 <thead>
元素中的内容与字符 "M" 向右两个字符的位置对齐:
<table border="1" width="100%">
<thead align="char" char="M" charoff="2">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
</thead>
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
</tr>
</table>
定义和用法
注意
HTML5 不支持 <thead> charoff 属性。
charoff 属性规定 <thead>
元素中的内容相对于由 char 属性规定的字符的对齐偏移量。
仅当 align 属性设置为 "char" 且已设置 char 属性时,才能使用 charoff 属性。
语法
<thead charoff="*number*">
属性值
值 | 描述 |
---|---|
number | 规定对齐方式。 正数规定向字符的右边对齐。 负数规定向字符的左边对齐。 |
浏览器兼容性
charoff |
---|