谷歌地图无法在 IE8 的 Thickbox 中加载

发布于 2024-10-03 11:07:46 字数 396 浏览 1 评论 0原文

我有一个 Google 地图(API v2)。

它位于 http://mydomain/maps。 在该地址下,它在每个浏览器中都可以正常工作。

我在主站点 http://mydomain 的 Thickbox (3.1) 中使用它。 这在 IE8 中不起作用(但仅在 IE8 模式下有效;IE7 和 IE8 兼容性工作正常)- 输出如附件所示。
控制台中没有出现 Javascript 错误。 替代文本

I have a Google Map (API v2).

It is located in http://mydomain/maps.
Under that address it works fine in every browser.

I use it, however within a Thickbox (3.1) from the home site http://mydomain.
That doesn't work in IE8 (but only in the IE8 mode; IE7 and IE8-compatibility work fine) - the output is as attached.
No Javascript errors occur in the console.
alt text

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

罗罗贝儿 2024-10-10 11:07:46

原来是由于缺少doctype声明造成的。

添加

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

解决了问题。

It turned out to be due to the lack of doctype declaration.

Adding

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

solved the problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文