English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Referenzhandbuch

HTML Tag大全

HTML tbody valign Eigenschaft

Die valign-Eigenschaft legt die vertikale Ausrichtung des Inhalts der tbody-Elemente fest.

 HTML <tbody> Tag

Online-Beispiel

Verwenden Sie die tbody-Eigenschaft, um den Inhalt horizontal auszurichten:

<table border="1">
  <tr>
      <th>Bücher über Programmiersprachen</th>
      <th>Preis</th>
  </tr>
  <tbody valign="bottom">
    <tr>
      <td>PHP Grundlagen教程</td>
      <td>$50</td>
    </tr>
    <tr>
      <td>JAVA Programmierden Denken</td>
      <td>$80</td>
    </tr>
  </tbody>
</table>
Testen Sie, sehen Sie ‹/›

Browser-Kompatibilität

IEFirefoxOperaChromeSafari

All major browsers support the valign attribute.

Definition and Usage

HTML5 The valign attribute for <tbody> is not supported. Please use CSS instead.

The valign attribute specifies the vertical alignment of the content within the <tbody> element.

Syntax

<tbody valign="top|middle|bottom|baseline">

Attribute Value

ValueDescription
topAlign content to the top.
middleAlign content to center (default value).
bottomAlign content to the bottom.
baselineAlign 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.

If font sizes are different, bottom vs. baseline illustration:

valign="bottom"

valign="baseline"

 HTML <tbody> Tag