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

HTML Referenzhandbuch

Vollständiges HTML-Tag-Verzeichnis

HTML: <tfoot> align Eigenschaft

Die align-Attribute gibt die Horizontale Ausrichtung des Inhalts im <tfoot>-Element an. IE kann den Wert "justify" in der Tabelle nicht korrekt verarbeiten, IE zentriert den Inhalt.

 HTML <tfoot> Tag

Online Beispiel

Inhalt in <tfoot>-Element zentriert ausrichten:

<table style="width:100%;" border="1">
    <tr>
      <th>Programmiersprache Bücher</th>
      <th>Preis</th>
    </tr>
    <tr>
      <td align="right">PHP Grund教程</td>
      <td>$30</td>
    </tr>
    <tr>
      <td align="left">JAVA Programmierungsgedanken</td>
      <td>$80</td>
    </tr>
      <tfoot align="center">
      <tr>
        <td>Summe</td>
        <td>$110</td>
      </tr>
  </tfoot> 
</table>
Test see ‹/›

Browser Compatibility

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.

Definition and Usage

HTML5 The <tfoot> align attribute is not supported. Use CSS instead.

The align attribute specifies the horizontal alignment of the content within the <tfoot> element.

Syntax

<tfoot align="left|right|center|justify|char">

Attribute Value

ValueDescription
leftLeft-align the content (default value).
rightRight-align the content.
centerCenter the content.
justifyExpand the line so that each line can have equal width (as in newspapers and magazines).
charAlign the content to a specified character.
 HTML <tfoot> Tag