<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에서 해주시기 바랍니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5152 |
senseme
|
12년 전 | 4159 | |
| 5151 |
senseme
|
12년 전 | 3734 | |
| 5150 |
프로프리랜서
|
12년 전 | 3131 | |
| 5149 |
프로프리랜서
|
12년 전 | 3970 | |
| 5148 |
프로프리랜서
|
12년 전 | 4354 | |
| 5147 |
프로프리랜서
|
12년 전 | 1585 | |
| 5146 |
senseme
|
12년 전 | 2712 | |
| 5145 |
senseme
|
12년 전 | 2712 | |
| 5144 |
senseme
|
12년 전 | 1255 | |
| 5143 | 12년 전 | 1291 | ||
| 5142 | 12년 전 | 8414 | ||
| 5141 |
senseme
|
12년 전 | 1509 | |
| 5140 |
senseme
|
12년 전 | 3744 | |
| 5139 |
senseme
|
12년 전 | 6329 | |
| 5138 |
senseme
|
12년 전 | 1550 | |
| 5137 | 12년 전 | 1142 | ||
| 5136 |
senseme
|
12년 전 | 1320 | |
| 5135 |
senseme
|
12년 전 | 3302 | |
| 5134 |
senseme
|
12년 전 | 1076 | |
| 5133 |
senseme
|
12년 전 | 1821 | |
| 5132 |
senseme
|
12년 전 | 1256 | |
| 5131 |
senseme
|
12년 전 | 909 | |
| 5130 | 12년 전 | 1401 | ||
| 5129 | 12년 전 | 2112 | ||
| 5128 |
senseme
|
12년 전 | 1386 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기