2012-03-01 130 views
0

因此,在接下来的页面中,您看到的第一张破碎图像应该是链接到谷歌地图的图像。如果我打开了chrome的检查工具,并右键单击src属性以在新选项卡中打开它,它可以正常工作,但由于某种原因它会在页面上呈现为破碎的图像。有任何想法吗?谷歌地图图像未加载?

http://test.teslaprime.com/courses/25/test_course1

+1

该链接将返回HTML不和形象 - 使用chrome开发人员工具上的网络选项卡,您将看到类型为'text/html' – ManseUK 2012-03-01 09:11:43

+0

您是如何解决这个问题的? (刚刚出于兴趣) – ManseUK 2012-03-01 09:13:35

+0

是否'img'标记被引用到html文件? – uday 2012-03-01 09:19:20

回答

1

只要按照谷歌自身的这些指令:http://maps.google.com/help/maps/getmaps/plot-one.html

你的情况,你需要把下面的代码添加到您的HTML:

<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?daddr=19+Chalda+Ct+San+Rafael+CA+94903&amp;ie=UTF8&amp;t=h&amp;ll=38.006014,-122.521711&amp;spn=0.006295,0.007989&amp;output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?daddr=19+Chalda+Ct+San+Rafael+CA+94903&amp;ie=UTF8&amp;t=h&amp;ll=38.006014,-122.521711&amp;spn=0.006295,0.007989&amp;source=embed" style="color:#0000FF;text-align:left">View Larger Map</a></small> 
+0

+1让我落后1分钟。 – uday 2012-03-01 09:20:15

+0

@Dave谢谢;) – SynerCoder 2012-03-01 09:32:31