테스트 사이트 - 개발 중인 베타 버전입니다

초보 질문드립니다. 테이블안에 아이프레임 리사이즈 질문입니다. ㅜㅜ

skyoon 11년 전 조회 4,660

제가 간단하게 테이블로 상단(로고), 중간(게시판), 하단 으로 나누고 중간부분에 아이프레임으로 게시판을 넣었습니다.

게시판 내용에 따라 아이프레임을 리사이징 하고 싶어서 검색해서 스크립트를 넣었는데요.

게시판 내용이 늘어나도 사이즈가 자동 조절이 안됩니다. 도와주세요 ㅜㅜ 제발..

 아래 내용입니다.

답변 부탁드려요~ㅠㅠ

 

<table width="800" border="0">
 
</table>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><script type="text/javascript">
function init(){
  var doc = document.getElementById('content');
  if(doc.offsetHeight == 0){
  } else {
  pageheight = doc.offsetHeight;

  parent.document.getElementById("contentFrame").height = pageheight+"px";
  }
}
window.onload = function(){
  init();
}

</script>
<head>


<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
.box { color: #FFF;
 font-family: "나눔바른고딕", "돋움";
 font-size: 30px;
}
</style>

</head>

<body>
<table width="800" border="0" align="center">
  <tr>
    <td colspan="3"><a href="../index.html"><img src="../img/xinanbao.jpg" width="800" height="119" alt="home"border=0></a></td>
  </tr>
  <tr>
    <td  colspan="3" align="center" valign="top"width="800" height="750"><p>&nbsp;</p>      <iframe  src="http://www.xinanbao.co.kr/gnuboard4/bbs/board.php?bo_table=box2">http://www.xinanbao.co.kr/gnuboard4/bbs/board.php?bo_table=box2" frameborder=0 scrolling=no width="660px"  height="100%" name="contentFrame" allowTransparency="true"></iframe>

</td>
  </tr>
  <tr>
    <td colspan="3"><img src="../img/foot.jpg" alt="" width="800" height="128" usemap="#Map" border="0">
      <map name="Map">
        <area shape="rect" coords="37,9,76,20" href="../index.html" alt="">
        <area shape="rect" coords="96,8,175,22" href="page1_xinanbao.html">
        <area shape="rect" coords="268,6,333,22" href="page3_yellowpage.html">
        <area shape="rect" coords="354,8,424,22" href="page4_Echoes Of Soul.html">
        <area shape="rect" coords="445,8,488,20" href="page5_korean.html">
        <area shape="rect" coords="513,9,582,21" href="page6_cq_cdNEWS.html">
        <area shape="rect" coords="674,10,705,22" href="page7_QA.html">
        <area shape="rect" coords="728,7,764,23" href="page8_gallaly.html">
    </map></td>
  </tr>
</table>
</body>


</html>​ 

댓글을 작성하려면 로그인이 필요합니다.

답변 2개

Dessi
11년 전

<div id='content​'>  내용 </div> div로 페이지 감싸주시면 될것 같아요.

 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

11년 전

부모창에 해 주셔야죠..

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

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

로그인