메뉴 건너뛰기

조회 수 5853 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
function iFrameResize(obj)
 {
  var iFrm = obj;
  var the_height = iFrm.contentWindow.document.body.scrollHeight;
  iFrm.style.height = the_height;
 }
  
  
 <iframe width="100%" height="100%" name="tabUp" frameborder="0" onload="iFrameResize(this)" scrolling="no" 
    src=""></iframe>
  
  
위 fuction은 리로드시 iframe 안쪽에 높이가 편해도 높이만큼 iframe의 높이가 맞춰서 바뀐다. 

function iFrameResize(obj)
 {
  var iFrm = obj;
  var the_height = iFrm.contentWindow.document.body.scrollHeight;
  iFrm.style.height = the_height;
 }
  
  
 <iframe width="100%" height="100%" name="tabUp" frameborder="0" onload="iFrameResize(this)" scrolling="no" 
    src=""></iframe>
  
  
위 fuction은 리로드시 iframe 안쪽에 높이가 편해도 높이만큼 iframe의 높이가 맞춰서 바뀐다. 

function iFrameResize(obj)
 {
  var iFrm = obj;
  var the_height = iFrm.contentWindow.document.body.scrollHeight;
  iFrm.style.height = the_height;
 }
  
  
 <iframe width="100%" height="100%" name="tabUp" frameborder="0" onload="iFrameResize(this)" scrolling="no" 
    src=""></iframe>
  
  
위 fuction은 리로드시 iframe 안쪽에 높이가 편해도 높이만큼 iframe의 높이가 맞춰서 바뀐다. 
function iFrameResize(obj)
 {
  var iFrm = obj;
  var the_height = iFrm.contentWindow.document.body.scrollHeight;
  iFrm.style.height = the_height;
 }
  
  
 <iframe width="100%" height="100%" name="tabUp" frameborder="0" onload="iFrameResize(this)" scrolling="no" 
    src=""></iframe> 

하단 정보를 입력할 수 있습니다

© k2s0o1d4e0s2i1g5n. All Rights Reserved