خاصية CSS المعلقة بعلامات الترقيم
مثال
ضع علامة ترقيم (إن وجدت) خارج حافة بداية السطر الأول في العنصر <p>:
p
{
hanging-punctuation: first;
}
التعريف والاستخدام
تحدد الخاصية ما hanging-punctuation
إذا كان من الممكن وضع علامة الترقيم خارج مربع السطر في بداية سطر نص كامل أو في نهايته.
القيمة الافتراضية: | لا أحد |
---|---|
وارث: | نعم |
متحرك: | رقم. اقرأ عن animatable |
الإصدار: | CSS3 |
بناء جملة JavaScript: | الكائن .style.hangingPunctuation = "الأول" |
دعم المتصفح
لا يدعم أي من المستعرضات الرئيسية خاصية الترقيم المعلق.
Property | |||||
---|---|---|---|---|---|
hanging-punctuation | Not supported | Not supported | Not supported | 10+ | Not supported |
بنية CSS
hanging-punctuation: none|first|last|allow-end|force-end|initial|inherit;
قيم الملكية
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 |