CSS -caption-side- Eigenschaft
Beispiel
Legen Sie die Platzierung von Tabellenbeschriftungen fest:
#example1 {
caption-side: bottom;
}
#example2 {
caption-side: top;
}
Definition und Verwendung
Die caption-side
Eigenschaft gibt die Platzierung einer Tabellenbeschriftung an.
Standardwert: | oben |
---|---|
Vererbt: | ja |
Animierbar: | Nein. Lesen Sie mehr über animierbare |
Ausführung: | CSS2 |
JavaScript-Syntax: | Objekt .style.captionSide="unten" |
Browser-Unterstützung
Die Zahlen in der Tabelle geben die erste Browserversion an, die die Eigenschaft vollständig unterstützt.
Property | |||||
---|---|---|---|---|---|
caption-side | 1.0 | 8.0 | 1.0 | 1.0 | 4.0 |
CSS-Syntax
caption-side: top|bottom|initial|inherit;
Eigenschaftswerte
Value | Description | Play it |
---|---|---|
top | Puts the caption above the table. This is default | |
bottom | Puts the caption below the table | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
Verwandte Seiten
CSS-Tutorial: CSS-Tabelle
HTML-DOM-Referenz: captionSide-Eigenschaft