<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>
<!--
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개
쉽다zzz
12년 전
감사요~
12년 전
꼭 필요한데 꿀같으 소스네요
10년 전
꼭 해봐야지..^^
9년 전
어떻게 써먹는 팁인지?
http://codepen.io/anon/pen/WreeBV?editors=110
높이가 자동 조절 안 되는 것 같아요.
http://codepen.io/anon/pen/WreeBV?editors=110
높이가 자동 조절 안 되는 것 같아요.
senseme
9년 전
크로스 브라우징때문입니다.
자신의 사용되고있는 서비스에 페이지가 존재해야합니다.
자신의 사용되고있는 서비스에 페이지가 존재해야합니다.
9년 전
원래 화면에 꽉 차게 나와야 하는 거 아닌가요?
index.php 파일에 넣어봐도 위 링크와 동일한 높이로 보이던데요.
index.php 파일에 넣어봐도 위 링크와 동일한 높이로 보이던데요.
게시판 목록
팁게시판
디자인과 관련된 유용한 정보를 공유하세요.
질문은 상단의 QA에서 해주시기 바랍니다.
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5102 | 12년 전 | 3475 | ||
| 5101 | 12년 전 | 2519 | ||
| 5100 |
senseme
|
12년 전 | 1837 | |
| 5099 |
senseme
|
12년 전 | 1533 | |
| 5098 |
senseme
|
12년 전 | 1521 | |
| 5097 |
senseme
|
12년 전 | 1280 | |
| 5096 |
senseme
|
12년 전 | 1676 | |
| 5095 |
senseme
|
12년 전 | 1356 | |
| 5094 |
senseme
|
12년 전 | 2418 | |
| 5093 |
senseme
|
12년 전 | 1616 | |
| 5092 |
senseme
|
12년 전 | 2224 | |
| 5091 |
senseme
|
12년 전 | 2112 | |
| 5090 |
senseme
|
12년 전 | 1749 | |
| 5089 |
senseme
|
12년 전 | 4529 | |
| 5088 |
senseme
|
12년 전 | 2668 | |
| 5087 |
senseme
|
12년 전 | 2823 | |
| 5086 |
senseme
|
12년 전 | 1233 | |
| 5085 |
senseme
|
12년 전 | 8508 | |
| 5084 |
senseme
|
12년 전 | 3317 | |
| 5083 |
senseme
|
12년 전 | 2661 | |
| 5082 |
senseme
|
12년 전 | 5310 | |
| 5081 |
senseme
|
12년 전 | 3381 | |
| 5080 | 12년 전 | 13282 | ||
| 5079 | 12년 전 | 3893 | ||
| 5078 | 12년 전 | 1458 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기