Displaying Google map in IE using <div> <object>

末鹿安然 提交于 2019-12-02 15:01:48

问题


How to make it work in ie8-ie9?

I have used iframes, but i have to take away all the iframe and replace them with some not bug way of displaying.

This the best way which works every where except the ie7-ie9 because in IE display only empty box.

I way that I think about to take google map link and separate them between link and style, but have no idea now to do it.

<div style="margin: 0 auto; width:550px; height:400px;">
<object type="text/html" data="https://maps.google.co.uk/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=BH20+5QT&amp;aq=&amp;sll=50.638194,-2.206535&amp;sspn=0.048883,0.100851&amp;t=m&amp;ie=UTF8&amp;hq=&amp;hnear=East+Lulworth+BH20+5QT,+United+Kingdom&amp;ll=50.638085,-2.181816&amp;spn=0.021774,0.049009&amp;z=14&amp;iwloc=A&amp;output=embed" style="width:550px; height:400px;">
</object></div>

来源:https://stackoverflow.com/questions/15190229/displaying-google-map-in-ie-using-div-object

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!