灰色竖线出现在Google地图中

灰色竖线出现在Google地图中

本文介绍了灰色竖线出现在Google地图中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在一个网站的移动版本中安装了Google Maps API,但是在整个地图中每300px左右出现灰色竖线时,我遇到了问题,有人知道如何解决此问题吗?香港专业教育学院试图设置地图调整大小功能和中心坐标,但没有运气.我还无法解决另一个问题,例如我的解决方案...您可以在 http://encorewebplus.com/mobilerestaurant/HIGHEND/#ourlocation (如果您拖动并调整窗口大小,将会看到问题)

I have installed a Google maps API into a mobile version of one of my websites, I am having an issue with gray vertical bars appearing every 300px or so throughout the map, does anyone have an idea of how to fix this? Ive tried setting map resize functions and center coordinates but no luck. I havent been able to come across another problem like mine with a solution... you can see an example of what I am talking about at http://encorewebplus.com/mobilerestaurant/HIGHEND/#ourlocation (if you drag and resize window you will see the issue)

感谢您的帮助

推荐答案

从ourmap.html中删除此样式:

Remove this style from ourmap.html:

img { border: 0; width: 95%; display: block; max-width: 95%; margin-left: auto; margin-right: auto; margin-top:2%;}

该问题是由max-width: 95%;

这篇关于灰色竖线出现在Google地图中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 12:01