English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
valign-Eigenschaft legt die vertikale Ausrichtung des Inhalts der <thead>-Elemente fest. HTML5 The valign attribute of <thead> is not supported. Please use CSS instead.
Stellen Sie den Inhalt von <thead> vertikal ausgerichtet am Boden aus:
<table style="width:100%;" border="1"> <thead valign="bottom"> <tr> <th height="50">Babi-Puppe-Hersteller</th> <th height="50">Babi-Puppe-Typ</th> </tr> </thead> <tr> <td>Barbie Prinzessin</td> <td>6Gelenkige Barbie-Puppe</td> </tr> <tr> <td>Barbie Prinzessin</td> <td>12Gelenkige Barbie-Puppe</td> </tr> </table>Testen Sie es heraus ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the valign attribute.
HTML5 The valign attribute of <thead> is not supported. Please use CSS instead.
The valign attribute specifies the vertical alignment of the content within the <thead> element.
<thead valign="top|middle|bottom|baseline">
Value | Description |
---|---|
top | Align content upward. |
middle | Align content to the center (default value). |
bottom | Align content downward. |
baseline | Align content to the baseline. The baseline is a fictional line. In a line of text, most letters are based on the baseline. The baseline value sets all table data in the line to share the same baseline. The effect of this value is often the same as the bottom value. However, if the text sizes are different, the baseline effect is better. Please see the illustration below. |
When the text size is different, bottom vs. baseline illustration:
valign="bottom"
valign="baseline"
HTML <thead> Tag