©
本文檔使用 php中文網手册 發布
text-decoration-style:solid | double | dotted | dashed | wavy
默认值:solid
适用于:所有元素
继承性:无
动画性:否
计算值:指定的值
solid:实线
double:双线
dotted:点状线条
dashed:虚线
wavy:波浪线
对应的脚本特性为textDecorationStyle。
<!DOCTYPE html> <html lang="zh-cmn-Hans"> <head> <meta charset="utf-8" /> <title>text-decoration-style_CSS参考手册_web前端开发参考手册系列</title> <meta name="author" content="Joy Du(飘零雾雨), dooyoe@gmail.com, www.doyoe.com" /> <style> .test li{ margin-top:10px; -webkit-text-decoration-line:underline; -moz-text-decoration-line:underline; text-decoration-line:underline; } .test li:nth-child(1){ -webkit-text-decoration-style:solid; -moz-text-decoration-style:solid; text-decoration-style:solid; } .test li:nth-child(2){ -webkit-text-decoration-style:double; -moz-text-decoration-style:double; text-decoration-style:double; } .test li:nth-child(3){ -webkit-text-decoration-style:dotted; -moz-text-decoration-style:dotted; text-decoration-style:dotted; } .test li:nth-child(4){ -webkit-text-decoration-style:dashed; -moz-text-decoration-style:dashed; text-decoration-style:dashed; } .test li:nth-child(5){ -webkit-text-decoration-style:wavy; -moz-text-decoration-style:wavy; text-decoration-style:wavy; } </style> </head> <body> <ul class="test"> <li>文本装饰实线</li> <li>文本装饰双线</li> <li>文本装饰密虚线</li> <li>文本装饰疏虚线</li> <li>文本装饰波浪线</li> </ul> </body> </html>
点击 "运行实例" 按钮查看在线实例
<!DOCTYPE html> <html lang="zh-cmn-Hans"> <head> <meta charset="utf-8" /> <title>text-decoration-style_CSS参考手册_web前端开发参考手册系列</title> <meta name="author" content="Joy Du(飘零雾雨), dooyoe@gmail.com, www.doyoe.com" /> <style> .test li{ margin-top:10px; -webkit-text-decoration-line:underline; -moz-text-decoration-line:underline; text-decoration-line:underline; } .test li:nth-child(1){ -webkit-text-decoration-style:solid; -moz-text-decoration-style:solid; text-decoration-style:solid; } .test li:nth-child(2){ -webkit-text-decoration-style:double; -moz-text-decoration-style:double; text-decoration-style:double; } .test li:nth-child(3){ -webkit-text-decoration-style:dotted; -moz-text-decoration-style:dotted; text-decoration-style:dotted; } .test li:nth-child(4){ -webkit-text-decoration-style:dashed; -moz-text-decoration-style:dashed; text-decoration-style:dashed; } .test li:nth-child(5){ -webkit-text-decoration-style:wavy; -moz-text-decoration-style:wavy; text-decoration-style:wavy; } </style> </head> <body> <ul class="test"> <li>文本装饰实线</li> <li>文本装饰双线</li> <li>文本装饰密虚线</li> <li>文本装饰疏虚线</li> <li>文本装饰波浪线</li> </ul> </body> </html>
点击 "运行实例" 按钮查看在线实例
<!DOCTYPE html> <html lang="zh-cmn-Hans"> <head> <meta charset="utf-8" /> <title>text-decoration-style_CSS参考手册_web前端开发参考手册系列</title> <meta name="author" content="Joy Du(飘零雾雨), dooyoe@gmail.com, www.doyoe.com" /> <style> .test li{ margin-top:10px; -webkit-text-decoration-line:underline; -moz-text-decoration-line:underline; text-decoration-line:underline; } .test li:nth-child(1){ -webkit-text-decoration-style:solid; -moz-text-decoration-style:solid; text-decoration-style:solid; } .test li:nth-child(2){ -webkit-text-decoration-style:double; -moz-text-decoration-style:double; text-decoration-style:double; } .test li:nth-child(3){ -webkit-text-decoration-style:dotted; -moz-text-decoration-style:dotted; text-decoration-style:dotted; } .test li:nth-child(4){ -webkit-text-decoration-style:dashed; -moz-text-decoration-style:dashed; text-decoration-style:dashed; } .test li:nth-child(5){ -webkit-text-decoration-style:wavy; -moz-text-decoration-style:wavy; text-decoration-style:wavy; } </style> </head> <body> <ul class="test"> <li>文本装饰实线</li> <li>文本装饰双线</li> <li>文本装饰密虚线</li> <li>文本装饰疏虚线</li> <li>文本装饰波浪线</li> </ul> </body> </html>
点击 "运行实例" 按钮查看在线实例