Notice
Recent Posts
Recent Comments
Link
- 서버-Study For Us 윈도우서버구축 외
- 개발-CMS Factory css외 각 강좌
- 개발-자바스크립트-전체이미지변화
- 개발-MSDN
- 개발-웹표준 W3
- 개발-JQuery
- 개발-JQuery 웹 테스트
- 개발-nayha
- 개발-HTML, CSS
- 개발-SQL 구문 만들기 주는 사이트
- 개발-SQLER
- 정보-컴퓨터 IP 포트 개방 확인
- 정보-파코즈
- 정보-MSwindowsforum
- 정보-인터넷진흥원,개인정보침해신고
- 정보-랜섬웨어침해대응센터
- 정보-스누피박스
- 디자인소스-Flaticon
- 디자인소스-Landing FREE UI KIT
- 교육-W3Schools
- 교육-juniorSW
- 교육-생활코딩
- 프로그램-Everything
- PDF 변환 사이트
Tags
- 공유기없이
- 노트북공유
- 디자인
- 이지드라이버
- 아이프레임 리사이징
- push-squat-repeat-workout
- 만능드라이버
- 가성비 그래픽카드
- Push-ups
- 사용자별 공유
- godmode-workout
- 장래성
- npp
- 천푸쉬업
- lstore
- psd
- iframe 자동
- squats
- 3천스쿼트
- 막힌코
- WanDrv6
- 공신닷컴
- squats-challenge
- 아이프레임 변경
- ab-mod
- Easy DriverPacks
- 포토샵
- god mod
- 웹데브
- 가성비 cpu
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Archives
- Today
- Total
오리, 하늘 날다
페이지 동기형 iframe 높이 조절 본문
페이지 내에서 iframe 높이가 자동으로 조절 되는 소스.
스크롤바가 2개씩 생기는 부분을 방지하기도 하고
내용이 많을 때 일괄적으로 표시 해 주는 유용한 소스.
(iframe 사용은 지양)
<head> 안에
<script type="text/javascript">
// iframe resize
function autoResize(i)
{
var iframeHeight=
(i).contentWindow.document.body.scrollHeight;
(i).height=iframeHeight+20;
}
</script>
<body> 문서의 <iframe> 스크립트
<iframe src="#iframeUrl" onload="autoResize(this)" scrolling="no" frameborder="0"></iframe>
유의, 소속 도메인 URL 내에서만 스크립트가 작동됩니다.
참조
http://guymal.com/mycode/iframe_size/
The Code
In the head of your document enter the following JavaScript code:
<script language="JavaScript">
<!--
function calcHeight()
{
//find the height of the internal page
var the_height=
document.getElementById('the_iframe').contentWindow.
document.body.scrollHeight;
//change the height of the iframe
document.getElementById('the_iframe').height=
the_height;
}
//-->
</script>
and in the body create the iframe tag:
<iframe width="700" id="the_iframe"
onLoad="calcHeight();"
src="testing_page.shtml"
scrolling="NO"
frameborder="1"
height="1">
An iframe capable browser is
required to view this web site.
</iframe>