CSS text-decoration-style Property
Voorbeeld
Stel verschillende soorten tekstdecoratiestijlen in:
div.a
{
text-decoration-line: underline;
text-decoration-style: solid;
}
div.b
{
text-decoration-line: underline;
text-decoration-style: wavy;
}
div.c
{
text-decoration-line: underline;
text-decoration-style: double;
}
div.d
{
text-decoration-line: overline underline;
text-decoration-style: wavy;
}
Definitie en gebruik
De text-decoration-style
eigenschap bepaalt de stijl van de tekstdecoratie (zoals effen, golvend, gestippeld, gestreept, dubbel).
Tip: Kijk ook naar de eigenschap text-decoration , een verkorte eigenschap voor text-decoration-line, text-decoration-style en text-decoration-color.
Standaardwaarde: | stevig |
---|---|
geërfd: | Nee |
Animeerbaar: | Nee. Lees over animeren |
Versie: | CSS3 |
JavaScript-syntaxis: | object .style.textDecorationStyle="golvend" |
Browserondersteuning
De getallen in de tabel geven de eerste browserversie aan die de eigenschap volledig ondersteunt.
Getallen gevolgd door -moz- specificeren de eerste versie die met een prefix werkte.
Property | |||||
---|---|---|---|---|---|
text-decoration-style | 57.0 | 79.0 | 36.0 6.0 -moz- |
12.1 | 44.0 |
CSS-syntaxis
text-decoration-style: solid|double|dotted|dashed|wavy|initial|inherit;
Eigendomswaarden
Value | Description | Play it |
---|---|---|
solid | Default value. The line will display as a single line | |
double | The line will display as a double line | |
dotted | The line will display as a dotted line | |
dashed | The line will display as a dashed line | |
wavy | The line will display as a wavy line | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
Gerelateerde pagina's
CSS-zelfstudie: CSS-tekst
HTML DOM-referentie: eigenschap textDecorationStyle