p

초간단 최신글 소스인데요. 이미지 테두리에 공간이 생겨요 OTL

test.gif
첨부한 사진에 style='border:1px solid #DEDEDE; 값이 있구요.
패딩은 다 0으로 해도 사진 아래쪽이 저렇게 되네요 대체 왜그럴까요 OTL

소스는 다음과 같습니다.
---------------------------------------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$img_width="788";
$img_height="178";
?>

<table width="<?=$img_width?>" height="<?=$img_height?>" border="0" cellspacing="0" cellpadding="0" style='border:1px solid #DEDEDE;'>
<tr><td>
<? for ($i=0; $i<count($list); $i++) {
$img = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
if (preg_match("/\.(gif|jpg|png)$/i", $img)) { ?>

<a style="cursor:default;" href='<?=$list[$i]['href']?>'><img src='<?=$g4[path]?>/data/file/<?=$bo_table?>/<?=$img?>' width='<?=$img_width?>' height='<?=$img_height?>' border='0'></a>

<?}
else if(preg_match("/\.(swf|wmv|asf|flv)$/i", $img))
{
echo"<script>doc_write(flash_movie('$g4[path]/data/file/$bo_table/$img', 'flash$i', '$img_width', '$img_height', 'transparent'));</script>";
}
else{
echo"<img src='$latest_skin_path/img/noimage.gif' width='$img_width' border='0'></a>";
}?>

</td></tr>
<? if (count($list) == 0) { ?>
<tr><td align=center height=30 background="<?=$latest_skin_path?>/img/board_bg_line.gif">게시물이 없습니다.</td></tr>
<? } ?>
</table>
<? } ?>

첨부파일

test.gif (78.9 KB)
0회 2008-05-08 13:57
|

댓글 5개

원래 이미지에 공백이 있는 거 아닌가요?
이미지도 바꿔보고 테이블 크기 패딩 다 해봤는데 이유를 모르겠어요 ㅠㅠ
해결됐습니다. ^^;
어떻게 해결하셨나요?
테이블 문제였습니다;; 안에 테이블을 또 넣어주니깐 됐어요ㅎㅎ;;
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
17년 전 조회 1,589
17년 전 조회 802
17년 전 조회 958
17년 전 조회 603
17년 전 조회 925
17년 전 조회 984
17년 전 조회 759
17년 전 조회 771
17년 전 조회 993
17년 전 조회 983
17년 전 조회 634
17년 전 조회 564
17년 전 조회 1,631
17년 전 조회 1,062
17년 전 조회 763
17년 전 조회 1,586
17년 전 조회 983
17년 전 조회 962
17년 전 조회 976
17년 전 조회 963