IE8上的工具提示不明确 [英] Tooltips don't clear on IE8

查看:54
本文介绍了IE8上的工具提示不明确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Highcharts构建应用程序,并且需要为大型企业客户支持IE8.

I'm building an application using Highcharts and need to support IE8 for a large enterprise customer.

这是我遇到的问题.每当我将鼠标悬停在某个点上时,工具提示就会按预期显示.但是,当我将鼠标移开时,工具提示的边框仍然保留.每一点都会发生这种情况,因此我在图表上最后给出了一些部分工具提示.如果我再次将鼠标悬停在同一点上,则会得到另一个工具提示.有关示例,请参见图片. (我会摆弄小提琴,但是jsfiddle不支持IE8.)

This is the issue I'm seeing. Whenever I hover over a point the tooltip shows up as expected. However, when I move the mouse away the border of the tooltip remains. This happens for every point, so I end up with several partial tooltips on the chart. If I hover over the same point again, I get another tooltip. See the picture for an example. (I'd make a fiddle, but jsfiddle doesn't support IE8).

我曾尝试对工具提示进行分组,但这似乎无济于事.我删除了所有工具提示格式化程序,但这似乎也无济于事.我希望支持IE8的工具提示.任何想法正在发生什么以及如何解决?

I've tried grouping tooltips, but this doesn't seem to help. I've removed any tooltip formatters, but that doesn't seem to help either. I'd love to support tooltips on IE8. Any ideas what's happening and how to fix it?

推荐答案

找到了!我没有指定doctype,所以页面以IE8 Quirks模式呈现.我添加了<!doctype html>更改为标准"模式,从而解决了该问题.

Found it! I didn't specify a doctype, so the page was rendering in IE8 Quirks mode. I added <!doctype html> to change to Standards mode and this resolved the issue.

这篇关于IE8上的工具提示不明确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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