'resize'에 해당되는 글 1건

  1. 2011.10.26 iframe resize 시 layer 형태로 조정하기.

iframe resize 시 layer 형태로 조정하기.

ITWeb/개발일반 2011. 10. 26. 14:40
iframe 을 포함 하고 있는 부모창의 컨텐츠가 밀리지 않고 iframe 의 size 를 조정하기 위한 방법을 설명 한다.
(결국 div 처럼 layered 형태로 표현이 가능 함.)

쉽다!

<iframe style="position:absolute; ...." ....></iframe>

 
빨간색의 bold 부분만 넣어 주면 됩니다.

아래는 샘플 코드 입니다.

<iframe name="viewFrame" id="viewFrame" src="view.html" frameborder="0"     scrolling="no" style="position: absolute; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-to    p: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: transparent; display: block; left: 0px; top: 0p    x; width: 320px; height: 250px;" ></iframe>

 
: