text
English[tekst] American[t?kst]
n. Text, original text; text, textbook; theme; version
v .Texting
Third person singular: texts Plural: texts Present participle: texting Past tense: texted
decoration
英[?dek??re??n] 美[ ?d?k??re??n]
n. Ornament; decoration, decoration; decorative pattern, decorative style; medal
Plural: decorations
javascript textDecoration attribute syntax
Function: Modify the text.
Syntax: Object.style.textDecoration=none|underline|overline|line-through|blink
javascript textDecoration attribute example
<html> <head> <meta charset="UTF-8"> <script type="text/javascript"> function setTextDecoration() { document.getElementById("p1").style.textDecoration="overline"; } </script> </head> <body> <p id="p1">This is an example paragraph.</p> <p>給文本添加下劃線</p> <input type="button" onclick="setTextDecoration()" value="Set text-decoration" /> </body> </html>
Run instance ?
Click the "Run instance" button to view the online instance