English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Die Eigenschaft charoff setzt den Inhalt des <tfoot>-Elements von der Anzahl der Zeichen aus, die durch die Eigenschaft char angegeben wird. Die Eigenschaft charoff kann nur verwendet werden, wenn die Eigenschaft char angegeben ist und die Eigenschaft align auf "char" gesetzt ist.
Justieren Sie den Inhalt von <tfoot> zwei Zeichen nach rechts durch das Zeichen "." ausgerichtet:
<table style="width:100%;" border="1"> <tr> <th>Programmiersprache-Bücher</th> <th>Preis</th> </tr> <tr> <td align="right">PHP-Basis-Tutorial</td> <td>$30</td> </tr> <tr> <td align="left">JAVA Programming Thoughts</td> <td>$80</td> </tr> <tfoot align="char" char="." charoff="2"> <tr> <td>Total</td> <td>$110.00</td> </tr> </tfoot> </table>Test it out ‹/›
IEFirefoxOperaChromeSafari
Almost all mainstream browsers do not support the charoff attribute.
HTML5 The charoff attribute of <tfoot> is not supported.
The charoff attribute sets the number of characters from which the content within the <tfoot> element is aligned, starting from the character specified by the char attribute.
The charoff attribute can only be used if the char attribute is specified and the align attribute is set to 'char'.
<tfoot charoff="number">
Value | Description |
---|---|
number | Specify the alignment. Positive numbers align characters to the right. Negative numbers align characters to the left. |