如何根据iframe内嵌页面调整iframe高宽续篇
接着昨天的工作如何根据iframe内嵌页面调整iframe高宽来说,按照文章中说的第二种方法实现代码如下: 实现 A.com/detail/view 页面的iframe代码如下: 1 <iframe id= "thirdiframe" src= "http://B.com/location/testiframe" width= "100%" scrolling= "no" frameborder= "0" height= "900" ></iframe> B.com是第三方的域名,所以要求在B.com/location/testiframe的页面增加下面的html 1 2 3 <iframe id= "aiframe" src= "#" style= "display:none" ></iframe> <script type= "text/javascript" >this.document.getElementById( "aiframe" ).src= "http://A.com/detail/iframe?height...