게시판 에디터에서 첨부된 이미지 사이즈 조절 출력

게시판 에디터에서 첨부된 이미지 사이즈 조절 출력

QA

게시판 에디터에서 첨부된 이미지 사이즈 조절 출력

본문

제로보드 같은 경우 ccs 파일에서 이미지 사이즈를 조정 할수 있는데

 

 

그누 보드는 처음 접해 봐서요... 기본게시판 스킨에서 에디터에 첨부했던 이미지를

 

리스트로 출력 할때 이미지 사이즈 조정을 하고 싶은데요.... 어느 부분을 수정 하면

 

할수 있을까요... 현재 겔러리 형태의 게시판에서 적용을 하려고 합니다.

 

좀 막연한 질문 같습니다.. 쌤풀 올려 봅니다.

<tr>
 <td class=write_head>제품내용</td>
 <td style='padding:5px 0;'>
        <? if ($is_dhtml_editor) { ?>
            <?=cheditor2('wr_content', $content);?>
        <? } else { ?>
        <table width= 100% cellpadding=0 cellspacing=0>
        <tr>
            <td width=50% align=left valign=bottom>
                <span style="cursor: pointer;" onclick="textarea_decrease('wr_content', 10);"><img src="<?=$board_skin_path?>/img/up.gif"></span>
                <span style="cursor: pointer;" onclick="textarea_original('wr_content', 10);"><img src="<?=$board_skin_path?>/img/start.gif"></span>
                <span style="cursor: pointer;" onclick="textarea_increase('wr_content', 10);"><img src="<?=$board_skin_path?>/img/down.gif"></span></td>
            <td width=50% align=right><? if ($write_min || $write_max) { ?><span id=char_count></span>글자<?}?></td>
        </tr>
        </table>
        <textarea id="wr_content" name="wr_content" class=tx style='width: 100%; word-break:break-all;' rows=10 itemname="내용" required
        <? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?}?>><?=($w=="u") ? $content:date("YmdHis")?></textarea>
        <? if ($write_min || $write_max) { ?><script type="text/javascript"> check_byte('wr_content', 'char_count'); </script><?}?>
        <? } ?>
 </td>
</tr> 

이 질문에 댓글 쓰기 :

답변 3

해당 이미지가 출력되는 부분에 div로 감싸시고

div에 id나 class를 주어서

css에서 div크기를 조절하시면 그이상 싸이즈가 안커질꺼같습니다?

위에 소스는 글쓰기 write.php로 보여지는데

보여지는 쪽의 소스를 보여주세요

list.php소스를 보여주셔야 쉽게 풀수잇을듯합니다..

<? } ?>
<!-- 내용 출력 -->
<div id="pdCon">
<!-- <h3><p></p><?=cut_hangul_last(get_text($view[wr_subject]))?></h3> -->
<div id="contentPd">
<? if($view[wr_3]== null) { ?>
<? } else { ?>
<p><img src="/img/icon_new.png" alt=""/></p>
<? } ?>
<div class="imgLeft">
<? for($i=0; $i<count($img[file]); $i++) : ?>
<div class="img_big" id='img_big_<?=$i?>' style='display:<?=($i==0) ? "show":"none"?>' >
<a href='<?=$img[file][$i][href]?>'>
<?=makeThumbs($g4[path]."/data/file/$bo_table", $img[file][$i][file], "300", "300", cut_str($view[subject],20), "thumbs_view");?>
</a>
</div>
<? endfor;?>
<ul>
<? for($i=0; $i<count($img[file]); $i++) : ?>
<li>
<div>
<a href="javascript:show_big(<?=$i?>)">
<?=makeThumbs($g4[path]."/data/file/$bo_table", $img[file][$i][file], "62", "62", cut_str($view[subject],20), "thumbs_view_small");?>
</a>
</div>
</li>
<? endfor; ?>
</ul>
<script>
function show_big(i)
{
$(".img_big").hide();
$("#img_big_" + i).show();
}
</script>
</div>
<div class="txtRight">
<h4><?=$view[subject]?></h4>
<h5><?=$view[wr_2]?></h5>
<ul>
<? if($view[wr_1] == null) {
} else {?>
<li>
<label><img src="/img/pro1.gif"></label>
<span><?=$view[wr_1]?></span>
</li>
<? } ?>
<? if($view[wr_6] == null) {
} else {?>
<li>
<label><img src="/img/pro2.gif"></label>
<span><?=$view[wr_6]?></span>
</li>
<? } ?>
<? if($view[wr_7] == null) {
} else {?>
<li>
<label><img src="/img/pro3.gif"></label>
<span><?=$view[wr_7]?></span>
</li>
<? } ?>
<? if($view[wr_8] == null) {
} else {?>
<li>
<label><img src="/img/pro4.gif"></label>
<span><?=$view[wr_8]?></span>
</li>
<? } ?>
<? if($view[wr_5] == null) {
} else {?>
<li class="last">
<label><img src="/img/pro5.gif"></label>
<span><span><?=$view[wr_5]?>원</span> (VAT포함)</span>
</li>
<? } ?>
</ul>
</div>
</div>
<div class="contentShop">
<h4>제품소개</h4>
<?

$ttt = $view[wr_content];
$ttt = str_replace("http://도메인", "", $ttt);
echo $ttt;
?>
</div>
</div>

<script>
function tr_display(gb)
{
if(gb=="") {
$(".tr_file").show();
} else {
$(".tr_file").hide();
$(".tr_file_"+gb).show();
}
}
</script>


       
<? if($is_admin) { ?>
        <?//echo $view[rich_content]; // {이미지:0} 과 같은 코드를 사용할 경우?>
        <!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>

        <? if ($nogood_href) {?>
        <div style="width:72px; height:55px; background:url(<?=$board_skin_path?>/img/good_bg.gif) no-repeat; text-align:center; float:right;">
        <div style="color:#888; margin:7px 0 5px 0;">비추천 : <?=number_format($view[wr_nogood])?></div>
        <div><a href="<?=$nogood_href?>" target="hiddenframe"><img src="<?=$board_skin_path?>/img/icon_nogood.gif" border='0' align="absmiddle"></a></div>
        </div>
        <? } ?>

        <? if ($good_href) {?>
        <div style="width:72px; height:55px; background:url(<?=$board_skin_path?>/img/good_bg.gif) no-repeat; text-align:center; float:right;">
        <div style="color:#888; margin:7px 0 5px 0;"><span style='color:crimson;'>추천 : <?=number_format($view[wr_good])?></span></div>
        <div><a href="<?=$good_href?>" target="hiddenframe"><img src="<?=$board_skin_path?>/img/icon_good.gif" border='0' align="absmiddle"></a></div>
        </div>
        <? } ?>


</td>
</tr>
<? if ($is_signature) { echo "<tr><td align='center' style='border-bottom:1px solid #E7E7E7; padding:5px 0;'>$signature</td></tr>"; } // 서명 출력 ?>
</table>
<? } ?>

<? /*
// 코멘트 입출력
include_once("./view_comment.php");
*/ ?>

<? if($is_admin) { ?>
<div style="clear:both; height:43px;">
    <div style="float:left; margin-top:10px;">
    <? if ($prev_href) { echo "<a href=\"$prev_href\" title=\"$prev_wr_subject\"><img src='$board_skin_path/img/btn_prev.gif' border='0' align='absmiddle'></a>&nbsp;"; } ?>
    <? if ($next_href) { echo "<a href=\"$next_href\" title=\"$next_wr_subject\"><img src='$board_skin_path/img/btn_next.gif' border='0' align='absmiddle'></a>&nbsp;"; } ?>
    </div>

    <!-- 링크 버튼 -->
    <div style="float:right; margin-top:10px;">
    <?=$link_buttons?>
    </div>
</div>

</td></tr></table><br>
<? } ?>

죄송하지만.. 싸이트 그 리스트 페이지 주소 가능하실까요?
답변을 작성하시기 전에 로그인 해주세요.
전체 75
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT