css The text-decoration-style attribute is used to specify how lines are displayed. Its syntax is text-decoration-style: solid|double|dotted|dashed|wavy|initial|inherit.
#How to use the css text-decoration-style attribute?
Definition and Usage
The text-decoration-style property specifies how lines are displayed.
Default: solid
Inherited: No
Animatable: No.
Version: CSS3
JavaScript Syntax:
1 |
|
CSS Syntax
1 |
|
Properties Value
● solid Default value. The line will appear as a single line.
● double lines will be displayed as double lines.
● dotted lines will be displayed as dotted lines.
● dashed lines will appear as dotted lines.
● wavy lines will be displayed as wavy lines.
● initial sets this property to its default value.
● inherit Inherit this attribute from the parent element.
Example
Display a wavy line below the paragraph:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
|
Effect output:
The above is the detailed content of How to use css text-decoration-style attribute. For more information, please follow other related articles on the PHP Chinese website!