English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
<thead> align -Attribut verwenden, das align -Attribut gibt die horizontale Ausrichtung des Inhalts im <thead>-Element an, ein Online-Beispiel zeigt, wie das align -Attribut von <thead> verwendet wird, die Kompatibilität des Browsers, die Syntaxdefinition und die detaillierten Informationen zu seinen Attributwerten.
In <thead>-Elementen den Inhalt rechtsbündig ausrichten:
<table style="width:100%;" border="1"> <thead align="right"> <tr> <th height="50">Puppenhersteller</th> <th height="50">Puppenart</th> </tr> </thead> <tr> <td>Barbie-Königin</td> <td>6Gelenkige Barbie-Puppe</td> </tr> <tr> <td>Barbie-Königin</td> <td>12Gelenkige Barbie-Puppe</td> </tr> </table>Test it out ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the align attribute.
Note:IE cannot handle the "justify" value correctly; IE will process it as centered.
Note:Almost no browsers can handle the "char" value correctly.
HTML5 The <thead> align attribute is not supported. Use CSS instead.
The align attribute specifies the horizontal alignment of the content within the <thead> element.
<thead align="left|right|center|justify|char">
Value | Description |
---|---|
left | Left align the content. |
right | Right align the content. |
center | Center align the content (the default value for table header elements). |
justify | Expand the line so that each line can have equal width (as in newspapers and magazines). |
char | Align the content to the specified character. |