English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Eigenschaft <thead> charoff des HTML-Dokuments: Der Inhalt des <thead>-Elements beginnt mit der Anzahl der Zeichen, die durch die Eigenschaft char angegeben werden, und wird ab dem durch die Eigenschaft align="char" festgelegten Zeichen ausgerichtet. Diese Eigenschaft kann nur verwendet werden, wenn die Eigenschaft char und die Eigenschaft align="char" festgelegt sind.
Justieren Sie den Inhalt von <thead> mit den zwei Zeichen rechts von dem "B"-Zeichen:
<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 see ‹/›
IEFirefoxOperaChromeSafari
Almost all mainstream browsers do not support the charoff attribute.
HTML5 The charoff attribute for <thead> is not supported.
The charoff attribute sets the number of characters from the character specified by the char attribute with which the content within the <thead> element is aligned.
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 align characters to the right. Negative numbers align characters to the left. |