Właściwość wiszącej interpunkcji CSS
Przykład
Umieść znak interpunkcyjny (jeśli istnieje) poza początkową krawędzią pierwszej linii w elemencie <p>:
p
{
hanging-punctuation: first;
}
Definicja i użycie
Właściwość hanging-punctuation
określa, czy znak interpunkcyjny może być umieszczony poza polem wiersza na początku lub na końcu pełnego wiersza tekstu.
Domyślna wartość: | Żaden |
---|---|
Dziedziczny: | tak |
Animowalny: | nie. Przeczytaj o animacji |
Wersja: | CSS3 |
Składnia JavaScript: | obiekt .style.hangingPunctuation="pierwszy" |
Obsługa przeglądarki
Żadna z głównych przeglądarek nie obsługuje właściwości wiszącej interpunkcji.
Property | |||||
---|---|---|---|---|---|
hanging-punctuation | Not supported | Not supported | Not supported | 10+ | Not supported |
Składnia CSS
hanging-punctuation: none|first|last|allow-end|force-end|initial|inherit;
Wartości nieruchomości
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 |