สไตล์ ข้อความการ ตกแต่ง สไตล์ ทรัพย์สิน
ตัวอย่าง
แสดงเส้นหยักใต้องค์ประกอบ:
document.getElementById("demo").style.textDecorationStyle = "wavy";
ความหมายและการใช้งาน
คุณสมบัติ textDecorationStyle ตั้งค่าหรือส่งคืนวิธีการแสดงบรรทัด หากมี
รองรับเบราว์เซอร์
Property | |||||
---|---|---|---|---|---|
textDecorationStyle | 57.0 | 79.0 | 36.0 6.0 Moz |
12.1 | 44.0 |
ไวยากรณ์
ส่งคืนคุณสมบัติ textDecorationStyle:
object.style.textDecorationStyle
ตั้งค่าคุณสมบัติ textDecorationStyle:
object.style.textDecorationStyle = "solid|double|dotted|dashed|wavy|initial|inherit"
มูลค่าทรัพย์สิน
Value | Description |
---|---|
solid | Default value. The line will display as a single line |
double | The line will display as a double line |
dotted | The line will display as a dotted line |
dashed | The line will display as a dashed line |
wavy | The line will display as a wavy line |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
รายละเอียดทางเทคนิค
ค่าเริ่มต้น: | แข็ง |
---|---|
คืนมูลค่า: | A String แทนคุณสมบัติ text-decoration-style ของ element |
เวอร์ชัน CSS | CSS3 |
หน้าที่เกี่ยวข้อง
การอ้างอิง CSS: text-decoration-style property
❮ สไตล์วัตถุ