harta javascript outlineStyle
Hasil terjemahan:
. vt .Outline; outline; outline, sketsa, sketsa
Run Instance »
Orang ketiga tunggal: outlines Plural: outlines Present participle: outlines Past tense: outlined Past participle: outlined
n. gaya; Plural: styles Participle sekarang: penggayaan Past tense: styled Past participle: digayakanharta javascript outlineStylesintaks
Fungsi: Tetapkan gaya garis besar yang mengelilingi elemen.
Sintaks: Object.style.outlineStyle=style
harta javascript outlineStylecontoh
<html> <head> <style type="text/css"> p { border: thin solid #00FF00; outline: thick solid #FF0000; } </style> <script type="text/javascript"> function changeOutline() { document.getElementById("p1").style.outlineStyle="dotted"; } </script> </head> <body> <input type="button" onclick="changeOutline()" value="Change outline style" /> <p id="p1">This is a paragraph</p> </body> </html>
Run Instance »
Klik butang "Run Instance" untuk melihat instance dalam talian