2022-07-01 562
HTML <area> nohref 属性,标签不再支持 nohref 属性
实例
带有可点击区域的图像映射,并使用 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>
定义和用法
HTML5 中 <area> 标签不再支持 nohref 属性。
nohref 属性是一个 boolean(布尔) 属性。
该属性指定一个区域没有关联链接。
提示: nohref 属性指明 <area> 标签没有关联链接。更简单的方式是不使用 href 属性。
HTML 和 XHTML 之间的差异
在 XHTML 中,属性最小化是被禁止的, nohref 属性必须定义为<area nohref="nohref" />。
语法
<area nohref>
原文链接:https://77isp.com/post/1674.html
=========================================
https://77isp.com/ 为 “云服务器技术网” 唯一官方服务平台,请勿相信其他任何渠道。
数据库技术 2022-03-28
网站技术 2022-11-26
网站技术 2023-01-07
网站技术 2022-11-17
Windows相关 2022-02-23
网站技术 2023-01-14
Windows相关 2022-02-16
Windows相关 2022-02-16
Linux相关 2022-02-27
数据库技术 2022-02-20
抠敌 2023年10月23日
嚼餐 2023年10月23日
男忌 2023年10月22日
瓮仆 2023年10月22日
簿偌 2023年10月22日
扫码二维码
获取最新动态