Firefox 和 Firefox 的问题IE8 不显示图像映射的鼠标悬停替代文本
我有以下 HTML:
<div style="position: relative; text-align: left;">
<img id="chart_6c544b37_ac9d_49ed_912e_5ff8ad6c0181_BaseImage" src="chart.gif" width="460px" height="240px" usemap="#chart_6c544b37_ac9d_49ed_912e_5ff8ad6c0181" border="0">
<map name="chart_6c544b37_ac9d_49ed_912e_5ff8ad6c0181">
<area shape="poly" alt="Second Dot" coords="256,51,259,48,256,45,253,48"></area>
<area shape="poly" alt="First Dot" coords="183,51,186,48,183,45,180,48"></area>
</map>
</div>
使用 IE7 时,当我将鼠标悬停在图表上的区域上时,Alt 文本(“第一个点”和“第二个点”)会正确显示为工具提示,但在使用 Firefox 或 IE8 时不会显示。
有什么想法吗?
I have the following HTML:
<div style="position: relative; text-align: left;">
<img id="chart_6c544b37_ac9d_49ed_912e_5ff8ad6c0181_BaseImage" src="chart.gif" width="460px" height="240px" usemap="#chart_6c544b37_ac9d_49ed_912e_5ff8ad6c0181" border="0">
<map name="chart_6c544b37_ac9d_49ed_912e_5ff8ad6c0181">
<area shape="poly" alt="Second Dot" coords="256,51,259,48,256,45,253,48"></area>
<area shape="poly" alt="First Dot" coords="183,51,186,48,183,45,180,48"></area>
</map>
</div>
The Alt texts ("First dot" and "second dot") show correctly as tooltips when I hover over the areas on the graph when using IE7, but they do not show when using Firefox or IE8.
Any ideas why?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
属性
alt
仅在图片无法加载时显示。请改用title
属性。The attribute
alt
is only displayed when the the image can not be loaded. Use thetitle
attribute instead.