English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
HTML5Die <colgroup> char Attribute werden nicht unterstützt, das char Attribute bestimmt die Ausrichtung des Inhalts der Spaltengruppe, kann nur verwendet werden, wenn das align Attribute auf "char" gesetzt ist, der Standardwert von char ist das Dezimaltrennzeichen der Sprache der Seite.
In den folgenden Beispielen wird die zweite Spalte der Tabelle mit dem Zeichen "." ausgerichtet:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>HTML <colgroup> char Attribute Verwenden-基础教程(oldtoolbag.com)</title> <style>table, th, td { border: 1px solid black;}</style> </head> <body> <table style="width:100%"> <colgroup align="left">/colgroup> <colgroup align="char" char=".">/colgroup> <tr> <th>Month</th> <th>Savings</th> </tr> <tr> <td>January</td> <td>$100.00</td> </tr> <tr> <td>February</td> <td>$10.00</td> </tr> </table> </body> </html>Test see ‹/›
IEFirefoxOperaChromeSafari
Note:Almost all mainstream browsers do not support the char attribute.
In HTML5 In HTML, the char attribute of <colgroup> is not supported.
The char attribute specifies the alignment of the content within the column group relative to a character.
The char attribute can only be used when the align attribute is set to "char".
The default value of the char attribute is the decimal point character of the page language.
<colgroup char="character">
Value | Description |
---|---|
character | Specify the character to align the content with. |