English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Die Property "char" legt die Ausrichtung des Inhalts in der Zelle auf den Zeichensatz fest, und kann nur verwendet werden, wenn die Property "align" auf "char" gesetzt ist.
Justieren Sie den Inhalt des Datenblocks "Preis" mit dem Zeichensatz "."
<table style="width:100%;" border="1"> <thead> <tr> <th>Course</th> <th>Price</th> </tr> </thead> <tbody> <tr> <td>PHP Basic Course</td> <td align="char" char=".">450.00</td> </tr> <tr> <td>JAVA Programming Course</td> <td align="char" char=".">880.00</td> </tr> </tbody> </table>Test it out ‹/›
IEFirefoxOperaChromeSafari
Almost all mainstream browsers do not support the char attribute.
HTML5 The <td> char attribute is not supported.
The char attribute specifies the alignment of the content within the 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.
<td char="character">
Value | Description |
---|---|
character | Specifies the character to align the content with. |