Google地图缩放控件混乱了 [英] Google Maps zoom control is messed up

查看:92
本文介绍了Google地图缩放控件混乱了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Google Maps API(v.3)显示带有几个标记的地图。我最近注意到用来缩放地图的控件弄乱了(它并不总是这样)。我不知道原因是什么。



输入图像描述在这里



更新



这后原本有一个链接到一个网页,你可以查看问题,但是现在链接被破坏了,所以我将它删除了。解决方案

你的CSS搞砸了。在第814行中删除 max-width:100%; 并且缩放控件将再次显示正常。为避免此类错误,请在CSS中使用更具体的选择器。


I use the Google Maps API (v.3) to show a map with a couple of markers. I recently noticed that the control used to zoom the map is messed up (it wasn't always like this). I have no idea what the cause is.

Update

This post originally had a link to a page where you could view the issue, but the link is broken now, so I've removed it.

解决方案

Your CSS messed it up. Remove max-width: 100%; in line 814 and zoom controls will look fine again. To avoid such bugs use more specific selectors in your CSS.

这篇关于Google地图缩放控件混乱了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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