왜 이런걸까요?

왜 이런걸까요?

QA

왜 이런걸까요?

답변 3

본문

http://cnsj2012.com/gnuboard5/bbs/board.php?bo_table=after

파일로 하지 않고 상단코드 하단코드로 작업했습니다.

테이블안에 생성되지 않고 밖에 생깁니다. 어찌해야 하나요?

 


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>네일아트코리아</title>
<script type="text/javascript">
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
</script>
</head>
<body onload="MM_preloadImages('../../nailart/imgs/tbtn01o.gif','../../nailart/imgs/tbtn02o.gif','../../nailart/imgs/tbtn03o.gif','../../nailart/imgs/tbtn04o.gif','../../nailart/imgs/lbtn01o.gif','../../nailart/imgs/lbtn02o.gif','../../nailart/imgs/lbtn03o.gif','../../nailart/imgs/lbtn04o.gif')">
<table width="100" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table width="1000" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><table width="951" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="272"><a href="../../nailart/index.html"><img src="../../nailart/imgs/logo.gif" width="218" height="75" /></a></td>
            <td width="380"><img src="../../nailart/imgs/top_gap.gif" width="380" height="40" /></td>
            <td width="318" valign="bottom"><table width="200" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="81"><a href="../../nailart/p1-1.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image3','','../../nailart/imgs/tbtn01o.gif',1)"><img src="../../nailart/imgs/tbtn01.gif" width="69" height="40" id="Image3" /></a></td>
                <td width="80"><a href="../../nailart/p2-1.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image4','','../../nailart/imgs/tbtn02o.gif',1)"><img src="../../nailart/imgs/tbtn02.gif" width="80" height="40" id="Image4" /></a></td>
                <td width="25"><a href="../../gnuboard5/bbs/board.php?bo_table=after" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','../../nailart/imgs/tbtn03o.gif',1)"><img src="../../nailart/imgs/tbtn03.gif" name="Image5" width="81" height="40" id="Image5" /></a></td>
                <td width="14"><a href="../../gnuboard5/bbs/board.php?bo_table=reservation" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image6','','../../nailart/imgs/tbtn04o.gif',1)"><img src="../../nailart/imgs/tbtn04.gif" name="Image6" width="76" height="40" id="Image6" /></a></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="1000" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td valign="top"><table width="200" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td align="right"><img src="../../nailart/imgs/ltop.gif" width="218" height="68" /></td>
              </tr>
              <tr>
                <td><table width="200" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td align="right"><a href="../../nailart/p1-1.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image10','','../../nailart/imgs/lbtn01o.gif',1)"><img src="../../nailart/imgs/lbtn01.gif" name="Image10" width="218" height="41" id="Image10" /></a></td>
                  </tr>
                  <tr>
                    <td align="right"><a href="../../nailart/p2-1.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image11','','../../nailart/imgs/lbtn02o.gif',1)"><img src="../../nailart/imgs/lbtn02.gif" name="Image11" width="218" height="41" id="Image11" /></a></td>
                  </tr>
                  <tr>
                    <td align="right"><a href="../../gnuboard5/bbs/board.php?bo_table=after" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image12','','../../nailart/imgs/lbtn03o.gif',1)"><img src="../../nailart/imgs/lbtn03.gif" name="Image12" width="218" height="41" id="Image12" /></a></td>
                  </tr>
                  <tr>
                    <td align="right"><a href="../../gnuboard5/bbs/board.php?bo_table=reservation" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image13','','../../nailart/imgs/lbtn04o.gif',1)"><img src="../../nailart/imgs/lbtn04.gif" name="Image13" width="218" height="41" id="Image13" /></a></td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td align="right"><img src="../../nailart/imgs/lbottom.gif" width="218" height="235" /></td>
              </tr>
              <tr></tr>
            </table></td>
            <td valign="top"><table width="200" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><img src="../../nailart/imgs/subimg03.jpg" width="682" height="250" /></td>
              </tr>
              <tr>
                <td><table width="200" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td><img src="../../nailart/imgs/t3-1.gif" width="682" height="36" /></td>
                  </tr>
                  <tr>
                    <td>게시판</td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td> </td>
              </tr>
              </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><img src="../../nailart/imgs/footer.gif" width="848" height="85" /></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>

 

이 질문에 댓글 쓰기 :

답변 3

우선 table 코딩 방식은 예전에 사용하던 거구요.

요즘은 웹표준이라고 <div> 를 이용해서 코딩합니다.

상단코드와 하단코드의 소스를 한꺼번에 올려주신 것 같은데

상단과 하단으로 나누어 넣으면서 문제가 생긴것 같네요.

위는 어떤 부분의 소스인지 알려주셔야 답변이 됩니다.

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
filter #php ×
전체 15,429
© SIRSOFT
현재 페이지 제일 처음으로