开发者

tooltip is set but not displayed in firefox, javascript [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. 开发者_开发知识库 Closed 12 years ago.

Can any body please help me why the tooltip is not getting displayed in firefox when it is set using title attribute for <a> element while it works with InternetExplorer. title is set but still not getting displayed.


Simply put, the HTML spec does not specify what the browser behavior for setting the title attribute on the a element should be.

The makers of IE decided to display a tooltip, the makers of Firefox didn't, in early versions.

You can see that in a current version of Firefox, tooltips work as you expect if you hover over the names in the comments on this site.

From the spec:

This attribute offers advisory information about the element for which it is set.

And:

Values of the title attribute may be rendered by user agents in a variety of ways. For instance, visual browsers frequently display the title as a "tool tip"

As you can see, the tooltip is not mandated, only suggested as an example.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜