使ç¨HTML <map>æ ç¾ï¼ç»å¾ç设置çç¹ï¼æå®çè¦æ·»å é¾æ¥çå°æ¹ï¼
ä¾åï¼
<img src="planets.jpg" border="0" usemap="#planetmap" alt="Planets" border="0" />
<map name="planetmap" id="planetmap">
<area shape="circle" coords="180,139,14" href ="venus.html" style="cursor: pointer" alt="Venus" />
<area shape="circle" coords="129,161,10" href ="mercur.html" alt="Mercury" />
<area shape="rect" coords="0,0,110,260" href ="sun.html" alt="Sun" />
</map>
å
³äºä¾åç解éï¼
area å
ç´ æ°¸è¿åµå¥å¨ map å
ç´ å
é¨ãarea å
ç´ å¯å®ä¹å¾åæ å°ä¸çåºåã
<img>ä¸ç usemap å±æ§å¯å¼ç¨ <map> ä¸ç id æ name å±æ§ï¼åå³äºæµè§å¨ï¼ï¼æ以åºåæ¶å <map> æ·»å id å name å±æ§ã
x1,y1,x2,y2
å¦æ shape å±æ§è®¾ç½®ä¸º "rect"ï¼å该å¼è§å®ç©å½¢å·¦ä¸è§åå³ä¸è§çåæ ã
x,y,radius
å¦æ shape å±æ§è®¾ç½®ä¸º "circ"ï¼å该å¼è§å®åå¿çåæ ååå¾ã
x1,y1,x2,y2,..,xn,yn
å¦æ shape å±æ§è®¾ç½®ä¸º "poly"ï¼å该å¼è§å®å¤è¾¹å½¢åè¾¹çåæ ãå¦æ第ä¸ä¸ªåæ åæåä¸ä¸ªåæ ä¸ä¸è´ï¼é£ä¹ä¸ºäºå
³éå¤è¾¹å½¢ï¼æµè§å¨å¿
须添å æåä¸å¯¹åæ ã
温馨提示:内容为网友见解,仅供参考