javascript textDecoration property


  Hasil terjemahan:

teks

Bahasa Inggeris [tekst] Amerika [tɛkst]

n Teks, teks asal, buku teks; Style: texted

decoration

English [ˌdekəˈreɪʃn] US [ˌdɛkəˈreʃən]

n Hiasan, hiasan

;

javascript textDecoration propertysintaks

Fungsi: Ubah suai teks.

Sintaks: Object.style.textDecoration=tiada|garis bawah|garis atas|garis-lalu|kelip

javascript textDecoration propertycontoh

<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

Rumah

video

Soal Jawab