불당님의 클럽2에서 게시판 적용되는 부분 하단 잘림현상
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 :
클럽2에서 게시판을 불러올 때 iframe을 이용해서 불러오게 됩니다.
그래서인지, 게시판을 불러올 때 게시판 하단이 잘려버리는 경우가 생기기도 합니다.
그냥 테이블이나 div를 사용해서 적용할 수 있는 방법이 없을까요??
그렇다고 iframe에 높이를 지정해 놓으면, 스크롤이 생겨 모양이 좋지 않아서요...
불러오는 소스 부분은 아래와 같습니다.
cb_main.php에서
<?
include_once ("./club_main.head.php");
?>
<iframe width="100%" height="100%" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="<?=$doc?>" name="CLUB_BODY" id="CLUB_BODY"></iframe>
<?
include_once ("./club_main.tail.php");
?>
오류 주소 :
클럽2에서 게시판을 불러올 때 iframe을 이용해서 불러오게 됩니다.
그래서인지, 게시판을 불러올 때 게시판 하단이 잘려버리는 경우가 생기기도 합니다.
그냥 테이블이나 div를 사용해서 적용할 수 있는 방법이 없을까요??
그렇다고 iframe에 높이를 지정해 놓으면, 스크롤이 생겨 모양이 좋지 않아서요...
불러오는 소스 부분은 아래와 같습니다.
cb_main.php에서
<?
include_once ("./club_main.head.php");
?>
<iframe width="100%" height="100%" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="<?=$doc?>" name="CLUB_BODY" id="CLUB_BODY"></iframe>
<?
include_once ("./club_main.tail.php");
?>
댓글 2개
11년 전
club_main.php를 이렇게 바꿔 사용 하고 있습니다
<?
include_once ("./club_main.head.php");
?>
<iframe id="embeded-content" width="100%" src="<?=$doc?>" marginwidth="0" marginheight="0" frameborder="0"name="CLUB_BODY" id="CLUB_BODY" ></iframe>
<script type="text/javascript">
function resize_frame(id) {
var frm = document.getElementById("embeded-content");
function resize() {
frm.style.height = "auto"; // set default height for Opera
contentHeight = frm.contentWindow.document.body.scrollHeight;
frm.style.height = contentHeight + 23 + "px"; // 23px for IE7
}
if (frm.addEventListener) {
frm.addEventListener('load', resize, false);
} else {
frm.attachEvent('onload', resize);
}
}
resize_frame('embeded-content');
</script>
<?
include_once ("./club_main.tail.php");
?>
<?
include_once ("./club_main.head.php");
?>
<iframe id="embeded-content" width="100%" src="<?=$doc?>" marginwidth="0" marginheight="0" frameborder="0"name="CLUB_BODY" id="CLUB_BODY" ></iframe>
<script type="text/javascript">
function resize_frame(id) {
var frm = document.getElementById("embeded-content");
function resize() {
frm.style.height = "auto"; // set default height for Opera
contentHeight = frm.contentWindow.document.body.scrollHeight;
frm.style.height = contentHeight + 23 + "px"; // 23px for IE7
}
if (frm.addEventListener) {
frm.addEventListener('load', resize, false);
} else {
frm.attachEvent('onload', resize);
}
}
resize_frame('embeded-content');
</script>
<?
include_once ("./club_main.tail.php");
?>
11년 전
감사합니다. 적용해 봐야겠네요...
게시판 목록
그누4 질문답변
그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.
기존 게시물은 열람만 가능합니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 66554 | 11년 전 | 17733 | ||
| 66553 | 11년 전 | 12554 | ||
| 66552 |
alexseo
|
11년 전 | 10188 | |
| 66551 | 11년 전 | 10923 | ||
| 66550 | 11년 전 | 10495 | ||
| 66549 | 11년 전 | 11846 | ||
| 66548 | 11년 전 | 15029 | ||
| 66547 |
스타크루즈
|
11년 전 | 11493 | |
| 66546 |
kimch
|
11년 전 | 11599 | |
| 66545 | 11년 전 | 11423 | ||
| 66544 | 11년 전 | 12271 | ||
| 66543 |
별을기다리며
|
11년 전 | 14432 | |
| 66542 |
별을기다리며
|
11년 전 | 11924 | |
| 66541 | 11년 전 | 9692 | ||
| 66540 | 11년 전 | 10566 | ||
| 66539 | 11년 전 | 16399 | ||
| 66538 | 11년 전 | 10451 | ||
| 66537 | 11년 전 | 9134 | ||
| 66536 | 11년 전 | 10574 | ||
| 66535 |
alexseo
|
11년 전 | 5590 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기