스킨-테이블 사이즈 고정. > 그누3질답

그누3질답

스킨-테이블 사이즈 고정. 정보

그누보드 스킨-테이블 사이즈 고정.

본문

갤러리 스킨의 view 파일을 수정해야되겠는데 잘 안되네요.
이미지 사이즈가 클경우 본문으로 들어가보면 레이아웃이 깨집니다.
<img src=http://2la.co.kr/1.gif>
그래서 style='table-layout:fixed'를 삽입했는데,
<img src=http://2la.co.kr/2.gif>
게시판스킨에선 쉽게 수정이 되었는데.. 갤러리는 소스보니 사이즈에 지장줄만한 부분이 안보이네요.
어디를 수정해야되는지 좀 알려주세요.

<!-- 원글 내용 -->
<table width=<?=$width?> border=0 align=center cellpadding=0 cellspacing=0>
<tr><td colspan=2 height=1 bgcolor=#EAE8E8></td>
    </tr>
<tr><td class='ht lh' align=center bgcolor="#F4F4F4"><b><?=$subject?></b></td>
        <td></td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#EAE8E8></td>
    </tr>
<tr>
    <td>
        <table cellpadding=3 cellspacing=1  width=100% height=100%>
        <tr><td>&nbsp;이름 : <?=$name?> &nbsp;(<?=$ip?>)</td></tr>
        <tr><td>&nbsp;날짜 : <?=$write[wr_datetime]?></td></tr>
        <tr><td>&nbsp;조회 : <?=$write[wr_hit]?></td></tr>
        <? if ($is_category) { echo "<tr><td>&nbsp;분류 : $category_name</td></tr>"; } ?>
        <? if ($is_good) { echo "<tr><td>&nbsp;추천 : $write[wr_good]</td></tr>"; } ?>
        <? if ($is_nogood) { echo "<tr><td>&nbsp;비추천 : $write[wr_nogood]</td></tr>"; } ?>
        <?
        // 링크 설정한 값만큼 출력
        for ($i=1; $i<=$cfg[link_count]; $i++) {
            if ($link[$i][link]) { echo "<tr><td>&nbsp;링크 #{$i} : <a href='{$link[$i][href]}'
target='$default[de_link_target]'>{$link[$i][link]}</a>, Hit:{$link[$i][hit]}</td></tr>"; }
        }
        ?>
        <!--/*<?
        // 파일 업로드 설정한 값만큼 출력
        for ($i=1; $i<=$cfg[file_count]; $i++) {
            if ($file[$i][source]) { echo "<tr><td>&nbsp;다운로드 #{$i} : <a href='{$file[$i][href]}'>{$file[$i][source]}
({$file[$i][size]})</a>, Down:{$file[$i][download]}</td></tr>"; }
        }
        ?>*/--//-->
        </table>
    </td>
        <td></td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#EAE8E8></td>
    </tr>
<tr>
    <td>
        <table width=100% cellpadding=5>
        <tr>
            <td style='word-break:break-all;' class='lh' height=100 align="center">
                <?
                for ($i=1; $i<=$cfg[file_count]; $i++) {
                    if ($file[$i][view]) { echo $file[$i][view]; }
                }
                ?>
                <!-- 내용 출력 -->
                <span class=content><?=$content?></span>
                <? if ($board[bo_use_signature]) { echo $signature; } // 서명 출력 ?>
                <!-- 테러 태그 방지용 -->
                </xml></xmp>
            </td>
        </tr>
        </table>
    </td>
        <td></td>
</tr>
</table>
<? if ($is_comment) { ?>
    <!-- 코멘트 내용 -->
    <? for ($i=0; $i<count($list); $i++) { ?>
    <a name='c<?=$list[$i][wr_id]?>'></a>
    <table width=<?=$width?> border=0 align=center cellpadding=4 cellspacing=1>
    <tr><td height=1 bgcolor=#EEEEEE></td></tr>
    <tr>
        <td>
            <table width=100%>
            <col width=100 align=center></col>
            <col width=5></col>
            <col width=5></col>
            <col width=4></col>
            <col width=''></col>
            <col width=99></col>
            <tr>
                <td valign=top style='word-break:break-all;'><?=$list[$i][name]?></td>
                <td></td>
                <td bgcolor=#EEEEEE></td>
                <td></td>
                <td valign=top style='word-break:break-all; text-align:justify;' class='lh'><?=$list[$i][content]?></td>
                <td valign=top align=right>
                    <?=$list[$i][datetime]?><br>
                    <?=$list[$i][ip]?><br>
                    <? if ($list[$i][is_del]) { echo "{$list[$i][del_href]}x</a>"; } ?>
                </td>
            </tr>
            </table>
        </td>
    </tr>
    </table>
    <? } // for ?>
    <? if ($is_comment_write) { ?>
    <!-- 코멘트 쓰기 -->
    <table width=<?=$width?> align=center border=0 cellpadding=3 cellspacing=1>
    <tr>
        <td bgcolor=#FFFFFF>
            <table width=100% cellpadding=3 cellspacing=0>
            <form name=fgbview method=post action='<?="./?doc=$cfg[bbs_dir]/gbupdate.php"?>'>
            <input type=hidden name=w        value='c'>
            <input type=hidden name=bo_table value='<?=$bo_table?>'>
            <input type=hidden name=sselect  value='<?=$sselect?>'>
            <input type=hidden name=stext    value='<?=$stext?>'>
            <input type=hidden name=wr_id    value='<?=$wr_id?>'>
            <input type=hidden name=page    value='<?=$page?>'>
            <input type=hidden name=section  value='<?=$section?>'>
            <col width=80 align=center></col>
            <col width='' align=center></col>
            <col width=70 align=center></col>
            <tr>
                <td>
                    이름<br><?=$c_name?><br>
                    <? if (!$member[mb_id]) { ?>비밀번호<br><input type=password name=wr_passwd size=10 class=input required
itemname='비밀번호'><? } ?>
                </td>
                <td><textarea name=wr_content rows=5 style='width:100%; line-height:150%;' required itemname='내용'
class=textarea></textarea></td>
                <td><input type=image src='<?="$board_skin/btncomment.gif"?>' border=0 align=absmiddle></td>
            </tr>
            </form>
            </table>
        </td>
    </tr>
    </table>
    <? } // if ?>
<? } // if ?>
<!-- 링크 -->
<table width=<?=$width?> align=center border=0 cellpadding=0 cellspacing=0>
<tr><td colspan=2 height=1 bgcolor=#EAE8E8></td>
    </tr>
<td>&nbsp;</td>
    <td></td>
</tr><tr>
    <td width=70% height=25>
        &nbsp;&nbsp; <? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin/searchlist.gif' border=0 alt='검색목
록'></a>"; } ?>
        <? echo "<a href=\"$list_href\"><img src='$board_skin/list.gif' border=0 alt='목록'></a>"; ?>
        <? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin/write.gif' border=0 alt='글쓰기'></a>"; } ?>
        <? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin/reply.gif' border=0 alt='답변'></a>"; } ?>
        <? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin/edit.gif' border=0 alt='수정'></a>"; } ?>
        <? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin/delete.gif' border=0 alt='삭제'></a>"; } ?>
        <? if ($good_href) { echo "<a href=\"$good_href\"><img src='$board_skin/good.gif' border=0 alt='추천'></a>"; } ?>
        <? if ($nogood_href) { echo "<a href=\"$nogood_href\"><img src='$board_skin/nogood.gif' border=0 alt='비추천'></a>"; } ?>
        <? if ($copy_href) { echo "<a href=\"$copy_href\"><img src='$board_skin/copy.gif' border=0 alt='복사'></a>"; } ?>
        <? if ($move_href) { echo "<a href=\"$move_href\"><img src='$board_skin/move.gif' border=0 alt='이동'></a>"; } ?>
    </td>
    <td width=30% align=right>
      <? if ($prev_href) { echo "<a href=\"$prev_href\" title=\"$prev_wr_subject\"><img src='$board_skin/prev.gif' border=0 alt='이전
글'></a>"; } ?><? if ($next_href) { echo "<a href=\"$next_href\" title=\"$next_wr_subject\"><img src='$board_skin/next.gif'
border=0 alt='다음글'></a>"; } ?>
            &nbsp;&nbsp;&nbsp;
    </td>
</tr>
</table>
  • 복사

댓글 전체

에휴............  확인 안하고 올립니다





<!-- 원글 내용 -->
<table width=<?=$width?> border=0 align=center cellpadding=0 cellspacing=0>
<tr>
  <td colspan=2 height=1 bgcolor=#EAE8E8></td>
</tr>

<tr>
  <td colspan=2 class='ht lh' align=center bgcolor="#F4F4F4"><b><?=$subject?></b></td>
</tr>

<tr>
  <td colspan=2 height=1 bgcolor=#EAE8E8></td>
</tr>

<tr>
    <td colspan=2>
        <table cellpadding=3 cellspacing=1 width=100% height=100%>
        <tr>
            <td>&nbsp;이름: <?=$name?> &nbsp;(<?=$ip?>)</td>
        </tr>
        <tr>
            <td>&nbsp;날짜: <?=$write[wr_datetime]?></td>
        </tr>
        <tr>
            <td>&nbsp;조회: <?=$write[wr_hit]?></td>
        </tr>
        <? if ($is_category) { echo "<tr><td>&nbsp;분류 : $category_name</td></tr>" } ?>
        <? if ($is_good) { echo "<tr><td>&nbsp;추천 : $write[wr_good]</td></tr>"; } ?>
        <? if ($is_nogood) { echo"<tr><td>&nbsp;비추천 : $write[wr_nogood]</td></tr>";} ?>
        <?
        // 링크 설정한 값만큼 출력
        for ($i=1; $i<=$cfg[link_count]; $i++) {
            if ($link[$i][link]) {
              echo "<tr><td>&nbsp;링크 #{$i} : <a href='{$link[$i][href]}' target='$default[de_link_target]'>{$link[$i][link]}</a>, Hit:{$link[$i][hit]}</td></tr>"; }
        }
        ?>

        </table>
    </td>
</tr>

<tr>
  <td colspan=2 height=1 bgcolor=#EAE8E8></td>
</tr>

<tr>
    <td colspan=2>
        <table width=100% cellpadding=5>
        <tr>
            <td style='word-break:break-all;' class='lh' height=100 align="center">
              <?
                for ($i=1; $i<=$cfg[file_count]; $i++) {
                    if ($file[$i][view]) { echo $file[$i][view]; }
                }
              ?>

                <span class=content><?=$content?></span>
                <? if ($board[bo_use_signature]) { echo $signature; } // 서명 출력 ?>

            </td>
        </tr>
        </table>
    </td>
</tr>
</table>

<? if ($is_comment) { ?>
    <!-- 코멘트 내용 -->
    <? for ($i=0; $i<count($list); $i++) { ?>
    <a name='c<?=$list[$i][wr_id]?>'></a>
  <table width=<?=$width?> border=0 align=center cellpadding=4 cellspacing=1>
    <tr><td height=1 bgcolor=#EEEEEE></td></tr>
    <tr>
        <td>
            <table width=100%>
            <col width=100 align=center></col>
            <col width=5></col>
            <col width=5></col>
            <col width=4></col>
            <col width=''></col>
            <col width=99></col>
            <tr>
                <td valign=top style='word-break:break-all;'><?=$list[$i][name]?></td>
                <td></td>
                <td bgcolor=#EEEEEE></td>
                <td></td>
                <td valign=top style='word-break:break-all; text-align:justify;' class='lh'><?=$list[$i][content]?></td>
                <td valign=top align=right>
                    <?=$list[$i][datetime]?><br>
                    <?=$list[$i][ip]?><br>
                    <? if ($list[$i][is_del]) { echo "{$list[$i][del_href]}x</a>"; } ?>
                </td>
            </tr>
            </table>
        </td>
      </tr>
  </table>
    <? } // for ?>
   
    <? if ($is_comment_write) { ?>
    <!-- 코멘트 쓰기 -->
    <table width=<?=$width?> align=center border=0 cellpadding=3 cellspacing=1>
    <tr>
        <td bgcolor=#FFFFFF>
        <table width=100% cellpadding=3 cellspacing=0>
            <form name=fgbview method=post action='<?="./?doc=$cfg[bbs_dir]/gbupdate.php"?>'>
            <input type=hidden name=w        value='c'>
            <input type=hidden name=bo_table value='<?=$bo_table?>'>
            <input type=hidden name=sselect  value='<?=$sselect?>'>
            <input type=hidden name=stext    value='<?=$stext?>'>
            <input type=hidden name=wr_id    value='<?=$wr_id?>'>
            <input type=hidden name=page    value='<?=$page?>'>
            <input type=hidden name=section  value='<?=$section?>'>
            <col width=80 align=center></col>
            <col width='' align=center></col>
            <col width=70 align=center></col>
            <tr>
                <td>
                    이름<br><?=$c_name?><br>
                    <? if (!$member[mb_id]) { ?>
                    비밀번호<br><input type=password name=wr_passwd size=10 class=input required itemname='비밀번호'><? } ?>
                </td>
                <td>
                  <textarea name=wr_content rows=5 style='width:100%; line-height:150%;' required itemname='내용' class=textarea></textarea></td>
                <td><input type=image src='<?="$board_skin/btncomment.gif"?>' border=0 align=absmiddle></td>
            </tr>
            </form>
        </table>
        </td>
    </tr>
    </table>
    <? } // if ?>
<? } // if ?>

<!-- 링크 -->
<table width=<?=$width?> align=center border=0 cellpadding=0 cellspacing=0>
  <tr>
      <td colspan=2 height=1 bgcolor=#EAE8E8></td>
  </tr>
  <td>&nbsp;</td>
    <td></td>
</tr>
<tr>
    <td width=70% height=25>
        &nbsp;&nbsp; <? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin/searchlist.gif' border=0 alt='검색목록'></a>"; } ?>
        <? echo "<a href=\"$list_href\"><img src='$board_skin/list.gif' border=0 alt='목록'></a>"; ?>
        <? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin/write.gif' border=0 alt='글쓰기'></a>"; } ?>
        <? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin/reply.gif' border=0 alt='답변'></a>"; } ?>
        <? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin/edit.gif' border=0 alt='수정'></a>"; } ?>
        <? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin/delete.gif' border=0 alt='삭제'></a>"; } ?>
        <? if ($good_href) { echo "<a href=\"$good_href\"><img src='$board_skin/good.gif' border=0 alt='추천'></a>"; } ?>
        <? if ($nogood_href) { echo "<a href=\"$nogood_href\"><img src='$board_skin/nogood.gif' border=0 alt='비추천'></a>"; } ?>
        <? if ($copy_href) { echo "<a href=\"$copy_href\"><img src='$board_skin/copy.gif' border=0 alt='복사'></a>"; } ?>
        <? if ($move_href) { echo "<a href=\"$move_href\"><img src='$board_skin/move.gif' border=0 alt='이동'></a>"; } ?>
    </td>
    <td width=30% align=right>
        <? if ($prev_href) { echo "<a href=\"$prev_href\" title=\"$prev_wr_subject\"><img src='$board_skin/prev.gif' border=0 alt='이전글'></a>"; } ?><?
          if ($next_href) { echo "<a href=\"$next_href\" title=\"$next_wr_subject\"><img src='$board_skin/next.gif' border=0 alt='다음글'></a>"; } ?>
            &nbsp;&nbsp;&nbsp;
    </td>
</tr>
</table>
저두 웹디자인 관련 커뮤니티 운영하면서 어이없는 질문들 많이 받아봐서.. 쓰잘데기 없는 수준의 질문은 알거든요!?
현재 제 질문의 요지는 어떻게하면 레이아웃이 안깨질수 있나!! 그거 하나뿐인데.. 위에 길고긴 소스는 그 라인중에 하나 수정할 부분 찝어 달라는거지 그 이상 제가 뭘 바라겠습니까? 제가 뭘 너무한건지 이해가 안가옵니다. ㅡ.ㅡa ㅎㅎ;
이렇게들 말씀하시면 제가 너무 잘못한거 같군요. 죄송합니다. -_-;
근데  M-Club님 누구세요? 오버 심하세요. ㅡㅡㅎ
소스중에 수정할 부분 한군데만 찝어주세요~!
© SIRSOFT
현재 페이지 제일 처음으로