将 Google 地图添加到页面后,滚动条消失了 - 如何恢复它们

发布于 2024-08-16 15:14:02 字数 271 浏览 7 评论 0原文

我刚刚实现了一个谷歌地图,它从 yelp API 中提取数据。一切都很好,除了我注意到页面上的滚动条已经消失。 Mac 和 PC 上的 FF 和 IE 均存在问题。

看看 - http://bhx-birmingham-airport.co.uk/ pages/hotels.php

我需要做什么才能取回它们?

I have just been implementing a google map, that pulls data from the yelp API. All fine, apart from I've noticed that the scroll bars on the page have dissappeared. Problem exists in FF and IE on Mac and PC.

Take a look - http://bhx-birmingham-airport.co.uk/pages/hotels.php

What do I need to do to get them back?

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

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

发布评论

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

评论(1

春花秋月 2024-08-23 15:14:03

显然在你的hotels.php页面中有一个CSS规则:

body {
    margin:0;
    overflow:hidden; /* <-- this is causing the problem! */
}

更改它并删除overflow:hidden或者如果你不能这样做(例如,如果谷歌的代码在其中注入该样式),则添加css 文件中的另一条规则:

body {
    overflow:auto !important;
}

Apparently in your hotels.php page there is a css rule:

body {
    margin:0;
    overflow:hidden; /* <-- this is causing the problem! */
}

Change it and remove the overflow:hidden or if you can't do that (for example if google's code injects that style in there) then add another rule in your css file:

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