CSS hang-leestekens Eiendom
Voorbeeld
Plaas 'n leesteken (indien enige) buite die beginrand van die eerste reël in die <p>-element:
p
{
hanging-punctuation: first;
}
Definisie en gebruik
Die hanging-punctuation
eienskap spesifiseer of 'n leesteken buite die lynkas aan die begin of aan die einde van 'n volledige reël teks geplaas mag word.
Standaard waarde: | geen |
---|---|
Geërf: | ja |
Animateerbaar: | geen. Lees oor animeerbaar |
Weergawe: | CSS3 |
JavaScript-sintaksis: | voorwerp .style.hangingPunctuation="first" |
Blaaierondersteuning
Nie een van die groot blaaiers ondersteun die hangende leesteken-eienskap nie.
Property | |||||
---|---|---|---|---|---|
hanging-punctuation | Not supported | Not supported | Not supported | 10+ | Not supported |
CSS-sintaksis
hanging-punctuation: none|first|last|allow-end|force-end|initial|inherit;
Eiendomswaardes
Value | Description |
---|---|
none | No punctuation mark may be placed outside the line box at the start or at the end of a full line of text |
first | Punctuation may hang outside the start edge of the first line |
last | Punctuation may hang outside the end edge of the last line |
allow-end | Punctuation may hang outside the end edge of all lines if the punctuation does not otherwise fit prior to justification |
force-end | Punctuation may hang outside the end edge of all lines. If justification is enabled on this line, then it will force the punctuation to hang |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |