Styl titulku Vlastnost strany
Příklad
Přesuňte popisek tabulky na konec tabulky:
document.getElementById("myCap").style.captionSide = "bottom";
Definice a použití
Vlastnost captionSide nastavuje nebo vrací pozici titulku tabulky.
Podpora prohlížeče
Property | |||||
---|---|---|---|---|---|
captionSide | Yes | 9.0 | Yes | Yes | Yes |
Syntax
Vraťte vlastnost captionSide:
object.style.captionSide
Nastavte vlastnost captionSide:
object.style.captionSide = "top|bottom|initial|inherit"
Hodnoty vlastností
Value | Description |
---|---|
top | Default. Positions the table caption above the table |
bottom | Positions the table 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 |
Technické údaje
Výchozí hodnota: | horní |
---|---|
Návratová hodnota: | Řetězec představující pozici titulku tabulky |
Verze CSS | CSS2 |
Další příklady
Příklad
Vraťte popisek tabulky:
alert(document.getElementById("myCap").style.captionSide);
Související stránky
CSS tutoriál: CSS tabulka
CSS reference: vlastnost caption-side
❮ Objekt stylu