欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

HTML DOM outline 屬性

HTML DOM Style 對象參考手冊

定義和用法

outline 屬性在一個聲明中設(shè)置所有輪廓屬性。

語法:

Object.style.outline = outlineWidth outlineStyle outlineColor

可能的值

描述
outlineWidth 設(shè)置輪廓的寬度。
  • thin
  • medium
  • thick
  • length
outlineStyle 設(shè)置輪廓的樣式。
  • none
  • hidden
  • dotted
  • dashed
  • solid
  • double
  • groove
  • ridge
  • inset
  • outset
outlineColor 設(shè)置輪廓的顏色。
  • color-name
  • color-rgb
  • color-hex
  • transparent

實例

下面的例子改變段落周圍的輪廓:

<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.outline="thin dotted #0000FF";
}
</script>
</head>
<body>

<input type="button" onclick="changeOutline()"
value="Change outline" />

<p id="p1">This is a paragraph</p>

</body>
</html>

TIY

outline - 改變元素周圍的輪廓(請在非 IE 瀏覽器中瀏覽)

HTML DOM Style 對象參考手冊