我可以依赖标题属性显示为工具提示吗? [英] Can I depend on the title attribute showing up as a tooltip?

查看:130
本文介绍了我可以依赖标题属性显示为工具提示吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已经将一些简单的工具提示编入我们的网站一段时间,只是意识到我们可以通过简单地使用title属性来完成同样的事情。任何原因,我们不应该使用title属性作为工具提示?是否有任何浏览器不支持此功能? ( w3schools 似乎表明所有主要浏览器都支持此功能。)

$ b



请参阅 http://www.w3.org/TR/html4/struct/global.html#h-7.4.3 =nofollow> http://www.w3.org/TR/html4/struct/global .html#h-7.4.3


We've been coding simple tooltips into our web site for a while, and just realized that we could accomplish the same thing by simply using the "title" attribute. Any reason that we shouldn't use the title attribute as a tooltip? Are there any browsers that don't support this feature? (w3schools seems to indicate that all major browsers support this.)

解决方案

It is a standard, you should be pretty safe.

See http://www.w3.org/TR/html4/struct/global.html#h-7.4.3

这篇关于我可以依赖标题属性显示为工具提示吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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