이거 깨지는거 바로 잡으려면 어떻게 해야 할까요? > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

이거 깨지는거 바로 잡으려면 어떻게 해야 할까요? 정보

이거 깨지는거 바로 잡으려면 어떻게 해야 할까요?

첨부파일

view.skin.php (4.0K) 2회 다운로드 2012-08-01 13:33:55

본문

이거 아무리 해도 안되요. 바로 오도록 방법이 없을까요? 테이블이 아무리줘도 변경이 안되네요.
http://www.jyhlab.com/board/bbs/board.php?bo_table=monthly&year=2012&month=8&wr_id=1131
view.skin.php
<!-- 원글 내용 -->
<table width="640"  align="center" cellpadding=0 cellspacing=0  style="border:1px solid #E1E1E1;" >
        <TR bgcolor="#f7f7f7">
          <TD  height=28 colspan="2" valign="middle"><? 
  if (strlen($view[wr_1]) > 1) {  // 입력된 아이콘 값이 있을 때
$imgown = $view[wr_1] ;
} else { $imgown = cal ; }
?>
            &nbsp;<IMG src="<?=$board_skin_path?>/img/<?=$imgown?>.gif" align=absMiddle border=0>
            <? if ($is_category) { echo ($category_name ? "[$view[ca_name]] " : ""); } ?>
            <B><FONT color=#000000>
            <?=$view[subject]?>
            </FONT></B></TD>
        </TR>
      </TABLE>
      <table width="640"  align="center" cellpadding=0 cellspacing=0 bordercolor=white style="border:1px solid #E1E1E1;">
        <?
    $from_date = str_replace("http://","",$view[link][1]);
    $to_date = str_replace("http://","",$view[link][2]);
    $from_date = substr($from_date,0,4)."년 ".sprintf("%2d",substr($from_date,4,2))."월 ".sprintf("%2d",substr($from_date,6,2))."일";
    $to_date  = substr($to_date,0,4)."년 ".sprintf("%2d",substr($to_date,4,2))."월 ".sprintf("%2d",substr($to_date,6,2))."일";
  ?>
        <tr height="25">
          <td width="638"    valign="middle">&nbsp; - 일 정 :
            <?=$from_date?>
            <? if($from_date != $to_date) echo"~ $to_date";?>
            |&nbsp; - 글쓴이 :
            <?=$view[name]?>
            &nbsp;<!-- - 조 회 : <?=$view[wr_hit]?> --> | &nbsp;- 등록일 :
            <?=substr($view[wr_datetime],2,14)?></td>
        </tr>
        <?
    // 파일 업로드 설정한 값만큼 출력
    for ($i=1; $i<=$cfg[file_count]; $i++) {
      if ($file[$i][source]) {
    echo "  <tr height='25'><td>&nbsp;다운로드 #{$i} : <a href='{$file[$i][href]}'>{$file[$i][source]} ({$file[$i][size]})</a>, Down:{$file[$i][download]}</td></tr>";

  }
    }
  ?>
        <tr>
          <td><TABLE width="630" border=0 align="center" cellpadding="0" cellspacing="0">
              <TR>
                <TD><?
      for ($i=1; $i<=$cfg[file_count]; $i++) {
        if ($file[$i][view]) { echo $file[$i][view]; }
      }
    ?>
                 
                  <!-- 내용 출력 -->
                  <span class=content>
                  <?=$view[content];?>
                  </span>
                  <? if ($board[bo_use_signature]) { echo $signature; } // 서명 출력 ?>
                 
                  <!-- 테러 태그 방지용 -->
                 
             
                  </xml>
                  </xmp> 
                  <a href=""></a><a href=''></a></TD>
              </TR>
          </table></td>
        </tr>
      </TABLE>
      <!----그냥 라인----------->
      <table width="640" border=0  align=center cellpadding=0 cellspacing=0>
        <tr>
          <td height=25><? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin_path/img/searchlist.gif' border=0 alt='검색목록'></a>"; } ?>
            <? echo "<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&year=$year&month=$month'><img src='$board_skin_path/img/list.gif' border=0 alt='목록'></a>"; ?>
            <? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin_path/img/edit.gif' border=0 alt='수정'></a>"; } ?>
            <? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin_path/img/delete.gif' border=0 alt='삭제'></a>"; } ?>
            <? if ($good_href) { echo "<a href=\"$good_href\"><img src='$board_skin_path/img/good.gif' border=0 alt='추천'></a>"; } ?>
            <? if ($nogood_href) { echo "<a href=\"$nogood_href\"><img src='$board_skin_path/img/nogood.gif' border=0 alt='비추천'></a>"; } ?>
            <? if ($copy_href) { echo "<a href=\"$copy_href\"><img src='$board_skin_path/img/copy.gif' border=0 alt='복사'></a>"; } ?>
            <? if ($move_href) { echo "<a href=\"$move_href\"><img src='$board_skin_path/img/move.gif' border=0 alt='이동'></a>"; } ?></td>
          <td align=right>&nbsp;</td>
        </tr>
</table>

댓글 전체

찬찬히 다시 해 보세요.
제가 보기엔 table 에서 찾아 보시면 나올 것 같네요.

모를 경우 table border=1 해서 어디가 문제인지 찾는것도 방법 입니다.
테이블 본문이 나오는 부분인 여기
 <table width="640"  align="center" cellpadding=0 cellspacing=0 bordercolor=white style="border:1px solid #E1E1E1;">
가 줄어들지 않고 사이즈가 계속고정되어 그런것 같은데 여기서는 아무리해도 테이블폭이 화면에 보이는것 보다 작아지지 않습니다. width값 선언을 해줘도 그렇네요.

원인이 뭘까요. 저도 폭이 이렇게 안 줄어드는건 처음이에요.
혹 파일의 본문의 폭을 선언하는 부분이 다른곳에서 영향을 주는게 있을까요?
전체 66,558 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT