최신글 포토가 찌그러지는데요...ㅠ > 그누4 질문답변

그누4 질문답변

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

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

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

본문

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

오류 주소 : 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>&nbsp;</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>

------------------------------------------------------------
  • 복사

댓글 전체

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

width="170" height="128"

여기에 문제가 있군요..

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

width 만 지정해 보세요
© SIRSOFT
현재 페이지 제일 처음으로