iframe으로 제공된 게시판페이지의 자동높이 조절 안되요 정보
iframe으로 제공된 게시판페이지의 자동높이 조절 안되요본문
포털업체에 iframe형식으로 프로그램을 제공하고 있습니다.
근데, iframe자동높이조절 스크립트를 넣었는데도 게시판의 높이 조절이 안 됩니다.
게시판을 탭으로 분류하여 종류별로 리스트를 보여줄 때 해당탭의 리스트가 보이는 만큼만 view페이지가 보여지더군요.
참고로 resize()스크립트입니다.
function resize()
{
var frame_size = document.body.scrollHeight;
document.child_frame.location.href = "http://www.abc.co.kr/v2/resize.asp?frame_size="+frame_size;
}
</script>
<iframe height=0 width=0 frameborder=0 name="bb_frame" marginheight=0 marginwidth=0 scrolling=no ></iframe>
근데, iframe자동높이조절 스크립트를 넣었는데도 게시판의 높이 조절이 안 됩니다.
게시판을 탭으로 분류하여 종류별로 리스트를 보여줄 때 해당탭의 리스트가 보이는 만큼만 view페이지가 보여지더군요.
참고로 resize()스크립트입니다.
function resize()
{
var frame_size = document.body.scrollHeight;
document.child_frame.location.href = "http://www.abc.co.kr/v2/resize.asp?frame_size="+frame_size;
}
</script>
<iframe height=0 width=0 frameborder=0 name="bb_frame" marginheight=0 marginwidth=0 scrolling=no ></iframe>
댓글 전체
scrolling=no --------> auto로
그래도 않되면..아래걸로 해보삼
<iframe src="주소" width=700 height=650 scroll="auto" frameborder=0 onload="this.style.height=this.contentWindow.document.body.scrollHeight;" ></iframe>
그래도 않되면..아래걸로 해보삼
<iframe src="주소" width=700 height=650 scroll="auto" frameborder=0 onload="this.style.height=this.contentWindow.document.body.scrollHeight;" ></iframe>