teks
Bahasa Inggeris [tekst] Amerika [tɛkst] n Teks, teks asal, buku teks; Style: texteddecoration
English [ˌdekəˈreɪʃn] US [ˌdɛkəˈreʃən]n Hiasan, hiasan
;javascript textDecoration property sintaks
Fungsi: Ubah suai teks.
Sintaks: Object.style.textDecoration=tiada|garis bawah|garis atas|garis-lalu|kelip
javascript textDecoration property contoh
<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 »
Klik butang "Run Instance" untuk melihat instance dalam talian