English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
A propriedade charoff do <thead> define a partir de qual caractere começar a alinhar o conteúdo do elemento <thead> dentro do caractere especificado pela propriedade char, e pode ser usada apenas quando a propriedade char está especificada e a propriedade align está configurada como "char".
Alinhar o conteúdo de <thead> com os dois caracteres à direita do caractere "B":
<table style="width:100%;" border="1"> <thead align="char" char="B" charoff="2"> <tr> <th height="50">Babi Doll Manufacturer</th> <th height="50">Babi Doll Type</th> </tr> </thead> <tr> <td>Barbie Princess</td> <td>6Joint Barbie Doll</td> </tr> <tr> <td>Barbie Princess</td> <td>12Joint Barbie Doll</td> </tr> </table>Test and see ‹/›
IEFirefoxOperaChromeSafari
Almost all mainstream browsers do not support the charoff attribute.
HTML5 The <thead> charoff attribute is not supported.
The charoff attribute sets the number of characters to start aligning the content within the <thead> element from the character specified by the char attribute.
The charoff attribute can only be used when the char attribute is specified and the align attribute is set to 'char'.
<thead charoff="number">
Value | Description |
---|---|
number | Specify the alignment method. Positive numbers specify right alignment for the character. Negative numbers specify left alignment for the character. |