HTML coords Atribut
Definice a použití
Atribut
coords
určuje souřadnice oblasti v obrazové mapě.
Atribut
coords
se používá spolu s shape
atributem k určení velikosti, tvaru a umístění oblasti.
Tip: Souřadnice levého horního rohu oblasti jsou 0,0.
Platí pro
Atribut
coords
lze použít pro následující prvek:
Živel | Atribut |
---|---|
<oblast> | souřadnice |
Příklad
Příklad oblasti
Obrazová mapa s klikacími oblastmi:
<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>
Podpora prohlížeče
Attribute | |||||
---|---|---|---|---|---|
coords | Yes | Yes | Yes | Yes | Yes |