불당님의 클럽2에서 게시판 적용되는 부분 하단 잘림현상 정보
불당님의 클럽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");
?>
댓글 전체

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");
?>

감사합니다. 적용해 봐야겠네요...