English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
A propriedade char especifica o modo de alinhamento do conteúdo da célula de título em relação aos caracteres, e pode ser usada apenas quando a propriedade align estiver configurada como "char", o valor padrão de char é o caractere de ponto decimal da linguagem da página.
Align the content of the first header cell with the character "Y":
<table style="width:100%" border="1"> <tr> <th align="char" char="Y">Year</th> <th>Income</th> </tr> <tr> <td>2018</td> <td>$15320.00</td> </tr> <tr> <td>2019</td> <td>$18320.00</td> </tr> </table>Test and see ‹/›
IEFirefoxOperaChromeSafari
Almost all mainstream browsers do not support the char attribute.
HTML5 The <th> char attribute is not supported.
The char attribute specifies the alignment of the content within the header cell with the character.
The char attribute can only be used when the align attribute is set to 'char'.
The default value of char is the decimal point character of the page language.
<th char="character">
Value | Description |
---|---|
character | Specifies the character to align the content with. |