- 0133技术站
- 联系QQ:88526
- QQ交流群

- 微信公众号

HTML5 中 <area> 标签不再支持 nohref 属性。
nohref 属性是一个 boolean(布尔) 属性。
指明此区域没有超链接。在<area>中必须存在nohref或者href。
目前所有主流浏览器都不支持 nohref 属性
在 XHTML 中,属性最小化是被禁止的, nohref 属性必须定义为<area nohref="nohref" />。
<area nohref>
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <p>点击太阳或其他行星,注意变化:</p> <img src="http://ss.0133.cn/upload/image/885/902/932/1553322045901285.gif" width="145" height="126" alt="Planets" usemap="#planetmap"> <map name="planetmap"> <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://public.xp.cn/down/course_demo/html/area_tabs/sun.htm"> <area shape="circle" coords="90,58,3" alt="Mercury" href="https://public.xp.cn/down/course_demo/html/area_tabs/mercur.htm"> <area shape="circle" coords="124,58,8" alt="Venus" href="https://public.xp.cn/down/course_demo/html/area_tabs/venus.htm"> </map> </body> </html>
点击 "运行实例" 按钮查看在线实例
推荐手册