CSS text-decoration-colorคุณสมบัติ
ตัวอย่าง
กำหนดสีของการตกแต่งข้อความเป็นสีแดง:
p
{
text-decoration: underline;
text-decoration-color: red;
}
ความหมายและการใช้งาน
คุณสมบัติtext-decoration-color
ระบุสีของการตกแต่งข้อความ (ขีดเส้นใต้ ขีดทับ เส้นผ่าน)
ค่าเริ่มต้น: | ปัจจุบันสี |
---|---|
รับการถ่ายทอด: | ไม่ |
เคลื่อนไหวได้: | ใช่. อ่านเกี่ยวกับแอนิเมชั่น |
รุ่น: | CSS3 |
ไวยากรณ์ JavaScript: | วัตถุ .style.textDecorationColor="red" |
รองรับเบราว์เซอร์
ตัวเลขในตารางระบุเบราว์เซอร์รุ่นแรกที่สนับสนุนคุณสมบัติอย่างสมบูรณ์
ตัวเลขตามด้วย -moz- หรือ -webkit- ระบุเวอร์ชันแรกที่ทำงานกับคำนำหน้า
Property | |||||
---|---|---|---|---|---|
text-decoration-color | 57.0 | 79.0 | 36.0 6.0 -moz- |
12.1 7.1 -webkit- |
44.0 |
ไวยากรณ์ CSS
text-decoration-color: color|initial|inherit;
มูลค่าทรัพย์สิน
Value | Description | Play it |
---|---|---|
color | Specifies the color of the text-decoration | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
หน้าที่เกี่ยวข้อง
กวดวิชา CSS: CSS Text
การอ้างอิง HTML DOM: คุณสมบัติ textDecorationColor