FAQ 같은 게시판 아이프레임
푸터를 관리자 페이지에서 넣으면 CSS 가 깨지는데 그게 어떻게 고쳐야 할지 너므 힘들어서
아이프레임을 넣었습니다.
목록이 길어지면 길어지는 만큼 잘 늘어나지만
이게 본문 내용이 아래로 떨어지는 구조라서
아래가 짤립니다
넣으라는 스크립트는 다 넣어봤습니다만. 안되네요
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/JavaScript">
$(document).ready(function(e) {
$('#ifrm').load(function() {
$(this).height($(this).contents().find('body')[0].scrollHeight+30+"px");
// $(this).width($(this).contents().find('body')[0].scrollWidth+"px");
});
});
</script>
<iframe id="ifrm" width="100%" frameborder="0" marginwidth="0" scrolling="no" src=“주소”></iframe>
이것도 시도해보고
<script language="JavaScript">
function resizeHeight(id) {
var the_height = document.getElementById(id).contentWindow.document.body.scrollHeight;
document.getElementById(id).height = the_height + 30;
}
</script>
<iframe src="주소" id="contentIframe" onLoad="resizeHeight('contentIframe');" scrolling="no" width="100%" frameborder="0">
</iframe>
이것도 해보았지만
소용이 없습니다
ㅠㅠ


답변 3개
답변을 작성하려면 로그인이 필요합니다.
로그인