如何显示Google地图Side by Side [英] How to display Google map Side by Side

查看:137
本文介绍了如何显示Google地图Side by Side的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的需要你们的帮助,请访问我的网站,并在地图部门的底部找到我的地图,我的地图不能并排排列。请帮助添加什么代码来并排排列它。
http://stages.a-wan.com/hybridmotors


解决方案

看起来你的gmaps只是容器的一部分你(可能)意味着让他们在

 < div class =clearfix col-sm-6>< / div>< div id =gmapstyle =height:440px;>< / div> 
< div class =clearfix col-sm-6>< / div>< div id =gmap2style =height:440px;>< / div>

将其更改为

 < div class =col-sm-6>< div id =gmapstyle =height:440px;>< / div>< / div> 
< div class =col-sm-6>< div id =gmap2style =height:440px;>< / div>< / div>

并且clearfix也应该被删除,如果你想要它们并排


i really need your guys help, please visit my website and scrool to the bottom at the map sector, my map cant align to side by side. Please help what code is needed to add in to align it to side by side. http://stages.a-wan.com/hybridmotors

解决方案

It seems your gmaps are outide of the container that you (probably) meant to have them in

<div class="clearfix col-sm-6"></div><div id="gmap" style="height: 440px;"></div>
<div class="clearfix col-sm-6"></div><div id="gmap2" style="height: 440px;"></div>

Change it to

<div class="col-sm-6"><div id="gmap" style="height: 440px;"></div></div>
<div class="col-sm-6"><div id="gmap2" style="height: 440px;"></div></div>

And the clearfix should be removed as well, if you want them side-by-side

这篇关于如何显示Google地图Side by Side的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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