이거 깨지는거 바로 잡으려면 어떻게 해야 할까요? 정보
이거 깨지는거 바로 잡으려면 어떻게 해야 할까요?첨부파일
본문
이거 아무리 해도 안되요. 바로 오도록 방법이 없을까요? 테이블이 아무리줘도 변경이 안되네요.
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 ; }
?>
<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"> - 일 정 :
<?=$from_date?>
<? if($from_date != $to_date) echo"~ $to_date";?>
| - 글쓴이 :
<?=$view[name]?>
<!-- - 조 회 : <?=$view[wr_hit]?> --> | - 등록일 :
<?=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> 다운로드 #{$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> </td>
</tr>
</table>
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 ; }
?>
<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"> - 일 정 :
<?=$from_date?>
<? if($from_date != $to_date) echo"~ $to_date";?>
| - 글쓴이 :
<?=$view[name]?>
<!-- - 조 회 : <?=$view[wr_hit]?> --> | - 등록일 :
<?=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> 다운로드 #{$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> </td>
</tr>
</table>
댓글 전체
찬찬히 다시 해 보세요.
제가 보기엔 table 에서 찾아 보시면 나올 것 같네요.
모를 경우 table border=1 해서 어디가 문제인지 찾는것도 방법 입니다.
제가 보기엔 table 에서 찾아 보시면 나올 것 같네요.
모를 경우 table border=1 해서 어디가 문제인지 찾는것도 방법 입니다.
테이블 본문이 나오는 부분인 여기
<table width="640" align="center" cellpadding=0 cellspacing=0 bordercolor=white style="border:1px solid #E1E1E1;">
가 줄어들지 않고 사이즈가 계속고정되어 그런것 같은데 여기서는 아무리해도 테이블폭이 화면에 보이는것 보다 작아지지 않습니다. width값 선언을 해줘도 그렇네요.
원인이 뭘까요. 저도 폭이 이렇게 안 줄어드는건 처음이에요.
혹 파일의 본문의 폭을 선언하는 부분이 다른곳에서 영향을 주는게 있을까요?
<table width="640" align="center" cellpadding=0 cellspacing=0 bordercolor=white style="border:1px solid #E1E1E1;">
가 줄어들지 않고 사이즈가 계속고정되어 그런것 같은데 여기서는 아무리해도 테이블폭이 화면에 보이는것 보다 작아지지 않습니다. width값 선언을 해줘도 그렇네요.
원인이 뭘까요. 저도 폭이 이렇게 안 줄어드는건 처음이에요.
혹 파일의 본문의 폭을 선언하는 부분이 다른곳에서 영향을 주는게 있을까요?