HTML <a> ±êÇ©µÄ coords ÊôÐÔ
ʵÀý
<object data="planets.gif" alt="Planets" type="image/gif" usemap="#Map1"> <map name="Map1"> <a href="sun.htm" shape="rect"coords="0,0,110,260"
>Sun</a> <a href="mercur.htm" shape="circle"coords="129,161,10"
>Mercury</a> <a href="venus.htm" shape="circle"coords="180,139,14"
>Venus</a> </map> </object>
¶¨ÒåºÍÓ÷¨
coords ÊôÐÔÓë shape ÊôÐÔÅäºÏ£¬¿ÉÒԹ涨 object »ò img ÔªËØÖÐÁ´½ÓµÄ³ß´ç¡¢ÐÎ×´ºÍλÖá£
×¢ÊÍ£º×óÉϽǵÄ×ø±êÊÇ 0,0¡£
Ìáʾ£ºÈçÐè´´½¨Äܹ»ÔÚËùÓÐä¯ÀÀÆ÷ÖÐÔËÐеÄͼÏñÓ³É䣬ÇëʹÓà area ÔªËØ¡£
ä¯ÀÀÆ÷Ö§³Ö
Ö»ÓÐ Firefox ºÍ Opera Ö§³Ö coords ÊôÐÔ¡£
Óï·¨
<a coords="value">
ÊôÐÔÖµ
Öµ | ÃèÊö |
---|---|
x1,y1,x2,y2 | Èç¹û shape ÊôÐÔÉèÖÃΪ "rect"£¬Ôò¸ÃÖµ¹æ¶¨¾ØÐÎ×óÉϽǺÍÓÒϽǵÄ×ø±ê¡£ |
x,y,radius | Èç¹û shape ÊôÐÔÉèÖÃΪ "circ"£¬Ôò¸ÃÖµ¹æ¶¨Ô²ÐĵÄ×ø±êºÍ°ë¾¶¡£ |
x1,y1,x2,y2,..,xn,yn | Èç¹û shape ÊôÐÔÉèÖÃΪ "poly"£¬Ôò¸ÃÖµ¹æ¶¨¶à±ßÐθ÷±ßµÄ×ø±ê¡£Èç¹ûµÚÒ»¸ö×ø±êºÍ×îºóÒ»¸ö×ø±ê²»Ò»Ö£¬ÄÇôΪÁ˹رնà±ßÐΣ¬ä¯ÀÀÆ÷±ØÐëÌí¼Ó×îºóÒ»¶Ô×ø±ê¡£ |