中文字幕一区二区人妻电影,亚洲av无码一区二区乱子伦as ,亚洲精品无码永久在线观看,亚洲成aⅴ人片久青草影院按摩,亚洲黑人巨大videos

Area shape 屬性

Area 對象參考手冊 Area 對象

定義和用法

shape 屬性可設(shè)置或返回某個區(qū)域的 shape 屬性值。

shape 屬性指定了圖像映射中某個區(qū)域的形狀。

語法

areaObject.shape=value

shape 屬性可以是以下值:

描述
default 指定整個地區(qū)
rect 定義了一個矩形區(qū)域
circle 定義了一個圓形區(qū)域
poly 定義一個多邊形區(qū)域

瀏覽器支持

Internet ExplorerFirefoxOperaGoogle ChromeSafari

所有主要瀏覽器都支持 shape 屬性


實例

實例

下面的例子可返回圖像映射中 "Venus" 區(qū)域的形狀:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>小白教程(json.cn)</title>
</head>
<body>

<img src="planets.gif" width="145" height="126" usemap="#planetmap">
<map name="planetmap">
<area id="venus" shape="circle" coords="124,58,8" alt="Venus" href="venus.htm">
</map>
<p>金星區(qū)域的形狀:
<script>
document.write(document.getElementById("venus").shape);
</script>
</p>

</body>
</html>

以上實例輸出結(jié)果:

金星區(qū)域的形狀: circle

運行代碼 ?

Area 對象參考手冊 Area 對象其他擴展