CSS skryfmodus Eiendom
Voorbeeld
Spesifiseer of teksreëls horisontaal of vertikaal uitgelê is:
p.test1 {
writing-mode: horizontal-tb;
}
p.test2 {
writing-mode: vertical-rl;
}
span.test2 {
writing-mode:
vertical-rl;
}
Definisie en gebruik
Die writing-mode
eienskap spesifiseer of teksreëls horisontaal of vertikaal uitgelê word.
Standaard waarde: | horisontaal-tb |
---|---|
Geërf: | ja |
Animateerbaar: | geen. Lees oor animeerbaar |
Weergawe: | CSS3 |
JavaScript-sintaksis: | objek .style.writingMode="vertical-rl" |
Blaaierondersteuning
Die nommers in die tabel spesifiseer die eerste blaaierweergawe wat die eiendom ten volle ondersteun.
Property | |||||
---|---|---|---|---|---|
writing-mode | 48.0 | 12.0 | 41.0 | 11.0 | 35.0 |
CSS-sintaksis
writing-mode: horizontal-tb|vertical-rl|vertical-lr;
Eiendomswaardes
Value | Description |
---|---|
horizontal-tb | Let the content flow horizontally from left to right, vertically from top to bottom |
vertical-rl | Let the content flow vertically from top to bottom, horizontally from right to left |
vertical-lr | Let the content flow vertically from top to bottom, horizontally from left to right |
Verwante bladsye
CSS-tutoriaal: CSS-tekseffekte