CSS text-decoration-style property

CSS Reference CSS Reference


Examples

Displayed at the bottom of a wavy line of the paragraph:

p
{
text-decoration: underline;
-moz-text-decoration-style: wavy; /* 针对 Firefox 的代码 */
}


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Almost all of the major browsers do not support text-decoration-style property.

Firefox supports another alternative of the property attribute that -moz-text-decoration-style property.


Definition and Usage

text-decoration-style attribute specifies how to display the lines.

Defaults: solid
inherit: no
Can be animated: no. Please refer to animation (Animatable) .
version: CSS3
JavaScript syntax: object .style.textDecorationStyle = "wavy"try


CSS Syntax

text-decoration-style: solid|double|dotted|dashed|wavy|initial|inherit;

Property Value

描述 测试
solid 默认值。线条将显示为单线。 测试 »
double 线条将显示为双线。 测试 »
dotted 线条将显示为点状线。 测试 »
dashed 线条将显示为虚线。 测试 »
wavy 线条将显示为波浪线。 测试 »
initial 设置该属性为它的默认值。请参阅 initial 测试 »
inherit 从父元素继承该属性。请参阅 inherit

CSS Reference CSS Reference