<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에서 해주시기 바랍니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5077 |
senseme
|
12년 전 | 1232 | |
| 5076 |
senseme
|
12년 전 | 3215 | |
| 5075 |
senseme
|
12년 전 | 833 | |
| 5074 |
senseme
|
12년 전 | 1763 | |
| 5073 | 12년 전 | 3606 | ||
| 5072 |
senseme
|
12년 전 | 5237 | |
| 5071 |
senseme
|
12년 전 | 1411 | |
| 5070 |
senseme
|
12년 전 | 742 | |
| 5069 |
senseme
|
12년 전 | 2720 | |
| 5068 |
senseme
|
12년 전 | 2465 | |
| 5067 |
senseme
|
12년 전 | 1498 | |
| 5066 |
senseme
|
12년 전 | 2909 | |
| 5065 |
senseme
|
12년 전 | 6509 | |
| 5064 | 12년 전 | 2138 | ||
| 5063 |
네오soft
|
12년 전 | 1873 | |
| 5062 | 12년 전 | 774 | ||
| 5061 | 12년 전 | 1779 | ||
| 5060 |
sa2pan
|
12년 전 | 1249 | |
| 5059 | 12년 전 | 3891 | ||
| 5058 | 12년 전 | 9824 | ||
| 5057 | 12년 전 | 1137 | ||
| 5056 | 12년 전 | 2451 | ||
| 5055 |
생각보다몸이앞서다
|
12년 전 | 2140 | |
| 5054 | 12년 전 | 2953 | ||
| 5053 |
kiplayer
|
12년 전 | 5978 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기