2012-03-01 150 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