Styl onderskrifSyde eiendom
Voorbeeld
Skuif die tabelbyskrif na die onderkant van die tabel:
document.getElementById("myCap").style.captionSide = "bottom";
Definisie en gebruik
Die captionSide-eienskap stel of gee die posisie van die tabelbyskrif terug.
Blaaierondersteuning
Property | |||||
---|---|---|---|---|---|
captionSide | Yes | 9.0 | Yes | Yes | Yes |
Sintaksis
Gee die onderskrifSide-eienskap terug:
object.style.captionSide
Stel die captionSide-eienskap:
object.style.captionSide = "top|bottom|initial|inherit"
Eiendomswaardes
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 |
Tegniese besonderhede
Standaard waarde: | Top |
---|---|
Terugkeerwaarde: | 'n String wat die posisie van die tabelbyskrif voorstel |
CSS weergawe | CSS2 |
Meer voorbeelde
Voorbeeld
Gee die tabelbyskrif terug:
alert(document.getElementById("myCap").style.captionSide);
Verwante bladsye
CSS-tutoriaal: CSS-tabel
CSS verwysing: onderskrif-kant eiendom
❮ Stylvoorwerp