คุณสมบัติเครื่องหมายวรรคตอนแขวน CSS
ตัวอย่าง
วางเครื่องหมายวรรคตอน (ถ้ามี) ไว้นอกขอบเริ่มต้นของบรรทัดแรกในองค์ประกอบ <p>:
p
{
hanging-punctuation: first;
}
ความหมายและการใช้งาน
คุณสมบัติhanging-punctuation
ระบุว่าจะวางเครื่องหมายวรรคตอนไว้นอกกล่องบรรทัดที่จุดเริ่มต้นหรือตอนท้ายของข้อความเต็มบรรทัด
ค่าเริ่มต้น: | ไม่มี |
---|---|
รับการถ่ายทอด: | ใช่ |
เคลื่อนไหวได้: | ไม่. อ่านเกี่ยวกับแอนิเมชั่น |
รุ่น: | CSS3 |
ไวยากรณ์ JavaScript: | วัตถุ .style.hangingPunctuation="first" |
รองรับเบราว์เซอร์
ไม่มีเบราว์เซอร์หลักใดที่สนับสนุนคุณสมบัติเครื่องหมายวรรคตอนค้าง
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 |