0

我正在尝试使用 Google Maps 提供的代码嵌入地图,而无需进行任何更改。当页面显示时,Google 指针、缩放级别指示器等显示,但没有街道或地图本身。这是谷歌提供的代码:

<iframe width="425" height="350" frameborder="0" scrolling="No" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?q=First+Baptist+Church,+Mc+Caysville,+GA+30555&amp;hl=en&amp;cd=2&amp;ei=Gh10TNbbGZj0ygTT24nwCQ&amp;sig2=hvRb-F6JuV91UcC6QUKGUw&amp;ie=UTF8&amp;view=map&amp;cid=16713672426408470324&amp;ved=0CBoQpQY&amp;hq=First+Baptist+Church,+Mc+Caysville,+GA+30555&amp;hnear=&amp;ll=34.986955,-84.368584&amp;spn=0.006153,0.013754&amp;z=16&amp;output=embed&amp;iwloc=near&amp;addr"></iframe>
    <br />
    <small><a href="http://maps.google.com/maps?q=First+Baptist+Church,+Mc+Caysville,+GA+30555&amp;hl=en&amp;cd=2&amp;ei=Gh10TNbbGZj0ygTT24nwCQ&amp;sig2=hvRb-F6JuV91UcC6QUKGUw&amp;ie=UTF8&amp;view=map&amp;cid=16713672426408470324&amp;ved=0CBoQpQY&amp;hq=First+Baptist+Church,+Mc+Caysville,+GA+30555&amp;hnear=&amp;ll=34.986955,-84.368584&amp;spn=0.006153,0.013754&amp;z=16&amp;source=embed" style="color:#0000FF;text-align:left">View Larger Map</a></small></div>

问题是什么?

4

1 回答 1

1

它适用于我的机器。

也许您忘记添加<html>and<body>标签。您还有一个</div>不会从任何地方开始的结束,但即使没有开始标签,它也应该可以工作。

<html>
<head>
    <title></title>
</head>
<body>
    <div>
        <iframe width="425" height="350" frameborder="0" scrolling="No" marginheight="0"
            marginwidth="0" src="http://maps.google.com/maps?q=First+Baptist+Church,+Mc+Caysville,+GA+30555&amp;hl=en&amp;cd=2&amp;ei=Gh10TNbbGZj0ygTT24nwCQ&amp;sig2=hvRb-F6JuV91UcC6QUKGUw&amp;ie=UTF8&amp;view=map&amp;cid=16713672426408470324&amp;ved=0CBoQpQY&amp;hq=First+Baptist+Church,+Mc+Caysville,+GA+30555&amp;hnear=&amp;ll=34.986955,-84.368584&amp;spn=0.006153,0.013754&amp;z=16&amp;output=embed&amp;iwloc=near&amp;addr">
        </iframe>
        <br />
        <small><a href="http://maps.google.com/maps?q=First+Baptist+Church,+Mc+Caysville,+GA+30555&amp;hl=en&amp;cd=2&amp;ei=Gh10TNbbGZj0ygTT24nwCQ&amp;sig2=hvRb-F6JuV91UcC6QUKGUw&amp;ie=UTF8&amp;view=map&amp;cid=16713672426408470324&amp;ved=0CBoQpQY&amp;hq=First+Baptist+Church,+Mc+Caysville,+GA+30555&amp;hnear=&amp;ll=34.986955,-84.368584&amp;spn=0.006153,0.013754&amp;z=16&amp;source=embed"
            style="color: #0000FF; text-align: left">View Larger Map</a></small></div>
</body>
</html>
于 2010-09-23T13:04:31.147 回答