아래에도 같은 소스가 있네요..
클럽 만들면서 적용한것 입니다.
function resizeIFrame()
{
var iframeWin = document.frames['CLUB_BODY'];
var scrollbarWidth = 4;
var iframeWinBody = iframeWin.document.body;
var diffHeight = iframeWinBody.scrollHeight - document.all.CLUB_BODY.style.pixelHeight;
document.all.CLUB_BODY.style.pixelHeight = document.all.CLUB_BODY.style.pixelHeight + diffHeight + scrollbarWidth;
}
</script>
위 스크립트를 페이지에 붙여넣고...
<iframe width="100%" height="100%" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" id="ifrm" src="불러올 페이지" name="CLUB_BODY" onload="resizeIFrame();"></iframe>
요렇게 해주시면 자동으로 크기에 맞게 조절이 됩니다.<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
클럽 만들면서 적용한것 입니다.
function resizeIFrame()
{
var iframeWin = document.frames['CLUB_BODY'];
var scrollbarWidth = 4;
var iframeWinBody = iframeWin.document.body;
var diffHeight = iframeWinBody.scrollHeight - document.all.CLUB_BODY.style.pixelHeight;
document.all.CLUB_BODY.style.pixelHeight = document.all.CLUB_BODY.style.pixelHeight + diffHeight + scrollbarWidth;
}
</script>
위 스크립트를 페이지에 붙여넣고...
<iframe width="100%" height="100%" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" id="ifrm" src="불러올 페이지" name="CLUB_BODY" onload="resizeIFrame();"></iframe>
요렇게 해주시면 자동으로 크기에 맞게 조절이 됩니다.<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
댓글 3개
게시글 목록
| 번호 | 제목 |
|---|---|
| 951 | |
| 946 | |
| 942 | |
| 937 | |
| 933 | |
| 928 |
기타
타입 툴사용시 팁
4
|
| 925 |
JavaScript
쓸모있는 'border-collapse' 속성
2
|
| 923 |
Linux
페도라 리눅스 시디1장으로 설치하기
1
|
| 922 | |
| 17851 | |
| 921 | |
| 918 | |
| 17849 | |
| 915 | |
| 914 |
JavaScript
움직임이 자연스러운 자바시계
|
| 913 | |
| 909 |
JavaScript
마우스 cursor
3
|
| 908 |
기타
그림자가 있는 글자
|
| 905 |
기타
6개국 시간
2
|
| 901 |
기타
css_table
1
|
| 903 | |
| 899 | |
| 893 |
JavaScript
일러스트에서 한글 자판이 안먹힐때.
5
|
| 888 | |
| 886 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기