HTML 좌표 속성


정의 및 사용

coords속성은 이미지 맵에서 영역의 좌표를 지정합니다 .

속성 은 coords속성과 함께 사용되어 shape영역의 크기, 모양 및 배치를 지정합니다.

팁: 영역의 왼쪽 위 모서리 좌표는 0,0입니다.


에 적용

속성 은 coords다음 요소에서 사용할 수 있습니다.

요소 기인하다
<지역> 좌표

예시

면적 예

클릭 가능한 영역이 있는 이미지 맵:

<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.htm" alt="Sun">
  <area shape="circle" coords="90,58,3" href="mercur.htm" alt="Mercury">
  <area shape="circle" coords="124,58,8" href="venus.htm" alt="Venus">
</map>

브라우저 지원

Attribute
coords Yes Yes Yes Yes Yes