1

你能看看下面的链接,让我知道为什么地图没有响应吗?我在正确定位方面也有一些问题,如果您能帮助我在页面中正确放置地图,我将不胜感激?

这也是我的 CSS 和 Html,

<meta name="viewport" content="width=device-width, initial-scale=1.0">
  <!-- The styles -->
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/bootstrap-responsive.css" rel="stylesheet">

<!-- JS Libs -->
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="http://maps.google.com/maps/api/js?sensor=false&dummy=.js"></script>
<script src="http://google-maps-utility-library-v3.googlecode.com/svn/trunk/routeboxer/src/RouteBoxer.js" type="text/javascript"></script>
</head>
<body>
<div class="row">
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
  <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
    <span class="icon-bar"></span>
    <span class="icon-bar"></span>
    <span class="icon-bar"></span>
  </a>
  <a class="brand" href="#">Brand</a>
  <div class="nav-collapse collapse" id="spanClasses">
    <ul class="nav">
      <li class="active"><a href="#">Home</a></li>
      <li><a href="#">Link</a></li>
      <li class="divider"></li>
      <li><a href="#">Link</a></li>
      <li class="divider"></li>
      <li><a href="#">Link</a></li>
      <li class="divider"></li>
    </ul>
  </div>
</div>
</div>
</div>
</div>
<div id="map">  
 <div id="map_canvas"></div>    
</div>

和CSS:

body { padding-top:42px; height: 100% }
#map_canvas { width: 99%; height: 100%;}
#map{ padding-left:10px; padding-right:0px;} 
4

1 回答 1

1

地图不是图像,当您缩小浏览器时它不会缩小

于 2013-06-29T00:10:56.107 回答