\t","url":"https://sir.kr/boards/program/18731","author":{"@type":"Person","name":"senseme","url":"https://sir.kr/profile/fd8d8956-5b99-4cbc-9e08-367f8488486f"},"interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":6}],"datePublished":"2013-03-03T01:40:15+09:00","dateModified":"2015-12-02T22:37:55+09:00","comment":[{"@type":"Comment","text":"감사요~","author":{"@type":"Person","name":"쉽다zzz"},"datePublished":"2013-04-05T09:20:42+09:00"},{"@type":"Comment","text":"꼭 필요한데 꿀같으 소스네요","author":{"@type":"Person","name":"쫠스"},"datePublished":"2013-06-21T11:46:29+09:00"},{"@type":"Comment","text":"꼭 해봐야지..^^","author":{"@type":"Person","name":"그렌트힐"},"datePublished":"2015-07-31T17:59:13+09:00"},{"@type":"Comment","text":"어떻게 써먹는 팁인지?\r\n\r\nhttp://codepen.io/anon/pen/WreeBV?editors=110\r\n\r\n높이가 자동 조절 안 되는 것 같아요.","author":{"@type":"Person","name":"홈짱"},"datePublished":"2015-12-01T23:49:25+09:00"},{"@type":"Comment","text":"크로스 브라우징때문입니다.\r\n자신의 사용되고있는 서비스에 페이지가 존재해야합니다.","author":{"@type":"Person","name":"senseme"},"datePublished":"2015-12-02T09:52:25+09:00"},{"@type":"Comment","text":"원래 화면에 꽉 차게 나와야 하는 거 아닌가요?\r\n\r\nindex.php 파일에 넣어봐도 위 링크와 동일한 높이로 보이던데요.","author":{"@type":"Person","name":"홈짱"},"datePublished":"2015-12-02T22:37:55+09:00"}]}
s

iframe 높이 자동조절 스크립트

<script language='javascript'>
<!--
function changeHeight() {
//아이프레임 안쪽 페이지 높이를 먼저구하신후
var the_height=document.getElementById('content').contentWindow.document.body.scrollHeight;
// 아이프레임 높이를 바꿔주시면 됩니다.
document.getElementById('content').height=the_height; }
//-->
</script>


<iframe id='content'
frameborder=0
width=100%
scrolling=no
onLoad="changeHeight();"
src='content.php'>
</iframe>
|

댓글 6개

꼭 필요한데 꿀같으 소스네요
꼭 해봐야지..^^
어떻게 써먹는 팁인지?

http://codepen.io/anon/pen/WreeBV?editors=110

높이가 자동 조절 안 되는 것 같아요.
크로스 브라우징때문입니다.
자신의 사용되고있는 서비스에 페이지가 존재해야합니다.
원래 화면에 꽉 차게 나와야 하는 거 아닌가요?

index.php 파일에 넣어봐도 위 링크와 동일한 높이로 보이던데요.
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
12년 전 조회 2,497
12년 전 조회 2,942
12년 전 조회 2,399
12년 전 조회 2,577
12년 전 조회 4,834
12년 전 조회 2,774
12년 전 조회 3,438
13년 전 조회 2,439
13년 전 조회 2,608
13년 전 조회 4,327
13년 전 조회 2,176
13년 전 조회 2,668
13년 전 조회 2,979
13년 전 조회 3,419
13년 전 조회 3,534
13년 전 조회 3,978
13년 전 조회 2,440
13년 전 조회 2,451
13년 전 조회 5,835
13년 전 조회 2,887
13년 전 조회 3,062
13년 전 조회 6,932
13년 전 조회 4,636
13년 전 조회 3,555
13년 전 조회 2,735
13년 전 조회 4,917
13년 전 조회 3,912
13년 전 조회 3,597
13년 전 조회 3,280
13년 전 조회 2,961
13년 전 조회 2,932
13년 전 조회 2,689
13년 전 조회 3,813
13년 전 조회 3,119
13년 전 조회 2,751
13년 전 조회 3,831
13년 전 조회 3,044
13년 전 조회 3,629
13년 전 조회 4,862
13년 전 조회 2,620
13년 전 조회 3,587
13년 전 조회 2,429
13년 전 조회 2,910
13년 전 조회 3,527
13년 전 조회 3,166
13년 전 조회 5,971
13년 전 조회 4,079
13년 전 조회 4,256
13년 전 조회 2,639
13년 전 조회 9,951
13년 전 조회 4,784
13년 전 조회 2,847
13년 전 조회 2,713
13년 전 조회 4,107
13년 전 조회 6,828
13년 전 조회 4,823
13년 전 조회 2,752
13년 전 조회 1.5만
13년 전 조회 2,633
13년 전 조회 2,056
13년 전 조회 5,209
13년 전 조회 2,683
13년 전 조회 1.1만
13년 전 조회 2,236
13년 전 조회 2,525
13년 전 조회 4,665
13년 전 조회 2,280
13년 전 조회 3,178
13년 전 조회 5,110
13년 전 조회 2,481
13년 전 조회 2,382
13년 전 조회 6,765
13년 전 조회 2,871
13년 전 조회 2,182
13년 전 조회 3,937
13년 전 조회 3,955
13년 전 조회 2,930
13년 전 조회 4,371
13년 전 조회 8,020
13년 전 조회 3,586
13년 전 조회 2,193
13년 전 조회 3,340
13년 전 조회 3,283
13년 전 조회 4,052
13년 전 조회 2,052
13년 전 조회 3,135
13년 전 조회 2,064
13년 전 조회 3,208
13년 전 조회 4,134
13년 전 조회 2,500
13년 전 조회 5,340
13년 전 조회 1.1만
13년 전 조회 2,572
13년 전 조회 3,958
13년 전 조회 3,554
13년 전 조회 4,298
13년 전 조회 7,494
13년 전 조회 3,938
13년 전 조회 4,441
13년 전 조회 2,455