English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Eigenschaft charoff des HTML tbody - Die Inhalte innerhalb des <tbody>-Elements beginnen mit der Anzahl der Zeichen, die durch das char-Attribut angegeben wird, und können nur verwendet werden, wenn das char-Attribut festgelegt ist und das align-Attribut auf "char" gesetzt ist.
Justieren Sie den Inhalt des <tbody>-Elements zwei Zeichen nach rechts相对于字符 ".":
<table border="1"> <tr> <th>Programmiersprache-Bücher</th> <th>Price</th> </tr> <tbody align="char" char="." charoff="2"> <tr> <td>PHP Basic Tutorial</td> <td>$50</td> </tr> <tr> <td>JAVA Programming Ideas</td> <td>$80</td> </tr> </tbody> </table>Test it out ‹/›
IEFirefoxOperaChromeSafari
Note:Almost all mainstream browsers do not support the charoff attribute.
HTML5 The charoff attribute is not supported for <tbody>.
The charoff attribute sets the number of characters from which the content within the <tbody> element is aligned, starting 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'.
<tbody 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. |