解决方案 »

  1.   

    name属性是属于保留字的,IE10可能是把name属性使用了,并且不让你进行修改,猜的,没有IE10的浏览器
      

  2.   


    版主来帮忙了哈,谢谢啦,今天才看到,昨天这个问题给解决了,举例iframe具体原因如下:
     <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+)有问题。解决办法就是很简单了,把相应的属性去掉 。