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>
<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>
尝试一下 »
浏览器支持





几乎所有的主流浏览器都不支持 charoff 属性。
定义和用法
HTML5 不支持 <thead> charoff 属性。
charoff 属性规定 <thead> 元素中的内容相对于由 char 属性规定的字符的对齐偏移量。
仅当 align 属性设置为 "char" 且已设置 char 属性时,才能使用 charoff 属性。
语法
  
    <thead charoff="number">
属性值
| 值 | 描述 | 
|---|---|
| number | 规定对齐方式。 正数规定向字符的右边对齐。 负数规定向字符的左边对齐。 | 
 HTML <thead> 标签
  HTML <thead> 标签			
						
			
 HTML教程
HTML教程 HTML5教程
HTML5教程 HTML参考手册
HTML参考手册 HTML字符集
HTML字符集 HTML DOM 教程
HTML DOM 教程