최신글 포토가 찌그러지는데요...ㅠ

· 17년 전 · 979 · 2
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 : http://www.ilovetoday.kr/bbs/group.php?gr_id=03

아무리 바꾸어봐도.... 해결이 안되서 다시 문의 드려요...

포토 최신글인데... 이미지 찌그러지는 현상을 좀 고쳤으면 합니다

첨부한 그림처럼 최신글의 이미지가 찌그러지는데요...

안찌그러지게 고치려면 어떻게 해야 할까요?

다음은 해당 latest.skin.php 소스입니다. 꼭 해결하고 싶습니다...ㅠ

----------------------- latest.skin.php ----------------------------

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>

<!-- <?=$board[bo_subject]?> (<?=$board[bo_table]?>) 최신글 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<?
for ($i=0; $i<count($list); $i++)
{
if ($i > 0)
echo "<td width=20> </td>";

$title = get_text($list[$i][wr_subject]);
$content = cut_str(get_text($list[$i][wr_content]), 80);
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
if (!file_exists($img) || !$list[$i][file][0][file])
$img = "$latest_skin_path/img/no_image.gif";
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table";

echo <<<HEREDOC
<td width="210" valign="top">
<table width="210" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="210" colspan="3"><img src="{$latest_skin_path}/img/skin_top.gif" width="210" height="16"></td>
</tr>
<tr>
<td width="19" height="128" background="{$latest_skin_path}/img/skin_l_bg.gif"></td>
<td width="170"><a href="{$href}"><img src="{$img}" width="170" height="128" border="0" title="$title"></a></td>
<td width="21" valign="top" background="{$latest_skin_path}/img/skin_r_bg.gif"><img src="{$latest_skin_path}/img/skin_right_img.gif" width="21" height="57"></td>
</tr>
<tr>
<td height="18" colspan="3"><img src="{$latest_skin_path}/img/skin_down.gif" width="210" height="18"></td>
</tr>
<tr>
<td width="19" height='22' background="{$latest_skin_path}/img/skin_t_left_bg.gif"></td>
<td width="170" align=center><a href="{$href}">{$list[$i][subject]}</a></td>
<td width="21" background="{$latest_skin_path}/img/skin_t_right_bg.gif"></td>
</tr>
<tr>
<td height="5" colspan="3"><img src="{$latest_skin_path}/img/skin_bottom.gif" width="210" height="5"></td>
</tr>
</table>
</td>
HEREDOC;
}
?>
</tr>
</table>

------------------------------------------------------------
|

댓글 2개

전에 질문 받은 적이 있었나요 ?

width="170" height="128"

여기에 문제가 있군요..

이미지를 불러와서 가로 세로 지정해 버리니 이미지가 찌그러 지지요..

width 만 지정해 보세요
앗~! 감사합니다...
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
17년 전 조회 1,579
17년 전 조회 1,094
17년 전 조회 764
17년 전 조회 838
17년 전 조회 974
17년 전 조회 904
17년 전 조회 740
17년 전 조회 972
17년 전 조회 765
17년 전 조회 980
17년 전 조회 868
17년 전 조회 954
17년 전 조회 816
17년 전 조회 926
17년 전 조회 878
17년 전 조회 960
17년 전 조회 759
17년 전 조회 804
17년 전 조회 840
17년 전 조회 948