亚洲区国产区激情区无码区,国产成人mv视频在线观看,国产A毛片AAAAAA,亚洲精品国产首次亮相在线

HTML 參考手冊

HTML 標簽大全

HTML: <area> coords 屬性

coords 屬性指定圖像地圖區(qū)域的 x 和 y 坐標。coords 屬性與 shape 屬性配合使用,以指定區(qū)域的大小,形狀和位置。 提示: 圖像區(qū)域左上角的坐標為0,0

 HTML <area> 標簽

在線示例

帶有可點擊區(qū)域的圖像映射:

<!DOCTYPE html>
<html>
<title>HTML:<area> coords 屬性 - 菜鳥教程 (cainiaoplus.com)</title>
<body>
<p>單擊太陽或其中一個行星以近距離觀察它</p>
<img src="planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap">
   <map name="planetmap">
  <area shape="rect" coords="0,0,82,126" href="sun.html" alt="Sun">
  <area shape="circle" coords="90,58,3" href="mercur.html" alt="Mercury">
  <area shape="circle" coords="124,58,8" href="venus.html" alt="Venus">
  </map>  
</body>
</html>
測試看看 ?/?

瀏覽器兼容性

IEFirefoxOperaChromeSafari

所有主流瀏覽器都支持 coords 屬性。

定義和用法

coords 屬性指定圖像地圖區(qū)域的 x 和 y 坐標。

coords 屬性與  shape 屬性配合使用,以指定區(qū)域的大小,形狀和位置。

提示: 圖像區(qū)域左上角的坐標為0,0。

HTML 4.01 與 HTML5之間的差異

沒有.

語法

<area coords="value">

屬性值

描述
x1,y1,x2,y2如果 shape 屬性設置為 "rect",則該值規(guī)定矩形左上角和右下角的坐標。
x,y,radius如果 shape 屬性設置為 "circ",則該值規(guī)定圓心的坐標和半徑。
x1,y1,x2,y2,..,xn,yn如果 shape 屬性設置為 "poly",則該值規(guī)定多邊形各頂點的值。如果第一個坐標和最后一個坐標不一致,那么為了關(guān)閉多邊形,瀏覽器必須添加最后一對坐標。

 HTML <area> 標簽