javascript outlineColor property
Hasil terjemahan:
Orang ketiga tunggal: outlines Plural: outlines Present participle: outlining Past tense: outlined Past participle: outlined
color
ˈkʌlɚ]
n.<Kecantikan> Render, jadikan warna; pemerah pipi
Orang ketiga tunggal: warna Plural: warna Present participle: pewarna Past tense: colored Past participle: colored Fungsi: Tetapkan warna garis besar di sekeliling elemen. Sintaks: Object.style.outlineColor=color-name|color-rgb|color-hex Klik butang "Run Instance" untuk melihat instance dalam talianjavascript outlineColor propertysintaks
javascript outlineColor propertycontoh
<html>
<head>
<style type="text/css">
p
{
border: thin solid #00FF00;
outline: thick solid #FF0000;
}
</style>
<script type="text/javascript">
function changeOutlineColor()
{
document.getElementById("p1").style.outlineColor="#00FF00";
}
</script>
</head>
<body>
<input type="button" onclick="changeOutlineColor()"
value="Change outline color" />
<p id="p1">This is a paragraph</p>
</body>
</html>
Run Instance »