通过https加载时,Google地图会在IE中出错

时间:2011-09-14 11:04:18

标签: internet-explorer google-maps iframe

我正在尝试通过https将地图加载到iframe中。在Firefox中它工作正常(在IE中不使用https时也是如此),但在IE中它会出现以下错误:

  

网页错误详情

     

用户代理:Mozilla / 4.0(兼容; MSIE 8.0; Windows NT 6.1; WOW64; Trident / 4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)   时间戳:星期三,2011年9月14日10:29:24 UTC

     

消息:对象不支持此属性或方法   行:2449   查尔:9   代码:0   URI:https://maps.gstatic.com/cat_js/intl/en_ALL/mapfiles/365b/maps2/%7Bmain,mod_util,mod_act,mod_actbr,mod_adf,mod_appiw,mod_dir,mod_hover,mod_mssvt,mod_poly,mod_qdt,mod_rst%7D.js

这是我的代码:

<iframe width="600" height="500" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?f=dhl=en&amp;ie=UTF8&amp;z=12&amp;output=embed#urlParam#"></iframe>

有没有人对此有解决方法?

0 个答案:

没有答案