带有可点击区域的图像映射,并使用 nohref 属性:
< img src = "planets.gif" width = "145" height = "126" alt = "Planets" usemap = "#planetmap" > < map name = "planetmap" > < area shape = "rect" coords = "0,0,82,126" nohref 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 > |
目前所有主流浏览器都不支持 nohref 属性。
HTML5 中 <area> 标签不再支持 nohref 属性。
nohref 属性是一个 boolean(布尔) 属性。
该属性指定一个区域没有关联链接。
提示: nohref 属性指明 <area> 标签没有关联链接。更简单的方式是不使用 href 属性。
在 XHTML 中,属性最小化是被禁止的, nohref 属性必须定义为<area nohref="nohref" />。
< area nohref> |
在线实例
字符集 & 工具
最新更新
站点信息
关注我们