图像地图是< map>弃用? [英] Are image maps <map> deprecated?

查看:107
本文介绍了图像地图是< map>弃用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在(x)HTML中是不推荐使用图像映射吗?

HTML 5 草稿规范。



它也出现在XHTML 严格的DTD 中:

 <!ELEMENT MAP  -   - ((%block;)| AREA)+  - 客户端图像映射 - > 

简而言之,这是两个规格的一部分,不被弃用。 b

有些人不喜欢图片地图,因为他们认为他们不容易访问或发现,因此还有其他标记/ css / javascript技术更好。




地图元素不会出现在 obsolete 部分。实际上,一些过时的功能建议使用图像映射。


Are image maps deprecated in (x)HTML?

解决方案

It is in the HTML 5 draft spec.

It also appears in the XHTML strict DTD:

<!ELEMENT MAP - - ((%block;) | AREA)+ -- client-side image map -->

In short - it is part of both specs and is not deprecated.

Some people do not like image maps because they perceive them as not very accessible or discoverable, and as such there are other markup/css/javascript techniques that work better.


The map element doesn't appear in the obsolete section of the HTML 5 spec either. In fact, several obsolete features have a recommendation to use image maps instead.

这篇关于图像地图是&lt; map&gt;弃用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆