CSS -onderskrif-kant Eiendom
Voorbeeld
Spesifiseer die plasing van tabelbyskrifte:
#example1 {
caption-side: bottom;
}
#example2 {
caption-side: top;
}
Definisie en gebruik
Die caption-side
eiendom spesifiseer die plasing van 'n tabelbyskrif.
Standaard waarde: | Top |
---|---|
Geërf: | ja |
Animateerbaar: | geen. Lees oor animeerbaar |
Weergawe: | CSS2 |
JavaScript-sintaksis: | voorwerp .style.captionSide="bottom" |
Blaaierondersteuning
Die nommers in die tabel spesifiseer die eerste blaaierweergawe wat die eiendom ten volle ondersteun.
Property | |||||
---|---|---|---|---|---|
caption-side | 1.0 | 8.0 | 1.0 | 1.0 | 4.0 |
CSS-sintaksis
caption-side: top|bottom|initial|inherit;
Eiendomswaardes
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 |
Verwante bladsye
CSS-tutoriaal: CSS-tabel
HTML DOM verwysing: captionSide eiendom