87,923
社区成员
发帖
与我相关
我的任务
分享
<iframe id="frame_content" name="frame_content" src="http://跨域页面/start.html" width="100%" height="1300px" scrolling="no" frameborder="0"></iframe>
1、当iframe上默认写上 name 后,跨域(ie10+)页面设置window.name父页面取name会失败,其它浏览器正常。
2、其它属性也是类似,比如我iframe中默认写个了height="1300px",当子页面为跨域页面时,我在父页面里再设置hegiht="1000px",这个值是设置不过去的。也是(ie10+)有问题。
解决办法就是很简单了,把相应的属性去掉 。