HTML <thead> char 屬性

HTML thead 標籤參考手冊 HTML <thead> 標籤

實例

把 <thead> 元素中的內容與字元 "M" 對齊:

<table border="1" width="100%">
<thead align="char" char="M">
<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>


流覽器支持

Internet ExplorerFirefoxOperaGoogle ChromeSafari

幾乎所有的主流流覽器都不支持 char 屬性。


定義和用法

HTML5 不支持 <thead> char 屬性。

char 屬性規定 <thead> 元素中的內容相對某個字元的對齊方式。

僅當 align 屬性設置為 "char" 時,才能使用 char 屬性。

char 屬性的默認值是當前頁面語言的小數點字元。


語法

<thead char="character">

屬性值

描述
character 規定將內容與之對齊的字元。


HTML thead 標籤參考手冊 HTML <thead> 標籤