这里应该怎么设置高度自适应?
iframe加载的url跨域没有,跨域了坐不了
关键是你想要到达什么样的效果,难点在哪,这样子,天知道。。。。
去看看别人的页面偷师憋
需要自适应的加上这个事实data-options="panelHeight:'auto'”
这个很好解决的啦。可以去看我写的博客:http://blog.csdn.net/qq_33556185/article/details/50669978
function iFrameHeight() { var ifm= document.getElementById("iframepage"); var subWeb = document.frames ? document.frames["iframepage"].document : ifm.contentDocument; if(ifm != null && subWeb != null) { ifm.height = subWeb.body.scrollHeight; } }