1. 程式人生 > 其它 >javascript當中MapArea的用法

javascript當中MapArea的用法

javascript當中MapArea的用法

4.MapArea
例 4.1(MapAreaShapeIEFF.html)
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<body>
<img
src="markWeChat.jpg"
border="0" usemap="#qixymap"
/>
<map name="qixymap" id="pmap">
<area
shape="circle"
coords="200,50,50"
href ="us.html"
target ="_blank"
alt="us" />
<area
shape="rect"
coords="0,0,100,100"
href ="rect.html"
target ="_blank"
alt="rect" />
</map>
< p>馬克-to-win:<b>註釋:</b>img 元素中的 "usemap" 屬性引用 map 元素中的 "id" 或 "name" 屬性(根據瀏覽器),所以我們同時向 map 元素添加了 "id" 和 "name" 屬性。</p>
a.矩形:必須使用四個數字,前兩個數字為左上角座標,後兩個數字
為右下角座標
b.圓形:必須使用三個數字,前兩個數字為圓心的座標,最後一個數


更多內容請見原文,文章轉載自:https://blog.csdn.net/qq_43650923/article/details/102646475