คุณสมบัติ text-decoration
ใช้คุณสมบัติ text-decoration เพื่อขีดทับข้อความด้วย CSS
ตัวอย่าง
<html>
<head>
</head>
<body>
<p style="text-decoration:line-through;">
This will be striked through. </p>
</body>
</html>
ค่าที่ใช้ได้ (CSS3):
- line: underline, overline, line-through
- style: solid, double, dotted, dashed, wavy
- color: สีของเส้น
- thickness: ความหนาของเส้น
รูปแบบใหม่: text-decoration: line-through solid red 2px;