CSS ยัติภังค์พ ร็อพเพอร์ ตี้
ตัวอย่าง
ตั้งค่ายัติภังค์ต่างๆ:
div.a {
-webkit-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
div.b {
-webkit-hyphens: manual;
-ms-hyphens:
manual;
hyphens: manual;
}
div.c {
-webkit-hyphens:
auto;
-ms-hyphens: auto;
hyphens: auto;
}
ความหมายและการใช้งาน
คุณสมบัติhyphens
กำหนดว่าอนุญาตให้ใส่ยัติภังค์เพื่อสร้างโอกาสในการตัดแบบซอฟต์เพิ่มเติมภายในบรรทัดข้อความหรือไม่
ค่าเริ่มต้น: | คู่มือ |
---|---|
รับการถ่ายทอด: | ใช่ |
เคลื่อนไหวได้: | ไม่. อ่านเกี่ยวกับแอนิเมชั่น |
รุ่น: | CSS3 |
ไวยากรณ์ JavaScript: | วัตถุ .style.hyphens="none" |
รองรับเบราว์เซอร์
ตัวเลขในตารางระบุเบราว์เซอร์รุ่นแรกที่สนับสนุนคุณสมบัติอย่างสมบูรณ์
Property | |||||
---|---|---|---|---|---|
hyphens | 55.0 | 79.0 10.0 -ms- |
43.0 | 5.1 -webkit- | 44.0 |
ไวยากรณ์ CSS
hyphens: none|manual|auto|initial|inherit;
มูลค่าทรัพย์สิน
Value | Description |
---|---|
none | Words are not hyphenated |
manual | Default. Words are only hyphenated at ‐ or ­ (if needed) |
auto | Words are hyphenated where the algorithm is deciding (if needed) |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |