当前位置: 代码迷 >> Web前端 >> iframe从适大小
  详细解决方案

iframe从适大小

热度:99   发布时间:2013-01-23 10:44:49.0
iframe自适大小
var iframeHeight = Math.min(window.document.documentElement.scrollHeight, window.document.body.scrollHeight);
 if(iframeHeight <= 300)
 {
  iframeHeight +=300;
 }
 iframeHeight+=10;
 $('#iframeDisplay').height(iframeHeight);
 $("#publishDisplay").height(iframeHeight);
  相关解决方案