최신갤러리 스킨 이미지크기 조절문제

최신갤러리 스킨 이미지크기 조절문제

QA

최신갤러리 스킨 이미지크기 조절문제

본문

아래는 모바일용으로 사용하려는 최신글갤러리 latest.skin.php 인데요.

사진사이즈를 바꾸고 싶은데요. 어느부분을 수정해야 가능할까요? 사진 가로사이즈를 지금 나올때의 두배정도를 주고자 합니다. 조언 부탁드립니다.

 

<?php
</div>
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
$thumb_width=50;
$thumb_height=50;

// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">', 0);
?>

<!-- <?php echo $bo_subject; ?> 최신글 시작 { -->
<div class="ltx">
    <strong class="lt_title"><a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table ?>"><?php echo $bo_subject; ?></a></strong>
    <ul>
   
    <?php
        for ($i=0; $i<count($list); $i++) {
            $thumb = get_list_thumbnail($bo_table, $list[$i]['wr_id'], $thumb_width, $thumb_height);
            if($thumb['src']) {
                $img = '<img src="'.$thumb['src'].'" alt="'.$list[$i]['subject'].'" width="'.$thumb_width.'" height="'.$thumb_height.'">';
            } else {
                $img = "NO IMAGE";
            }?>

        <li>
            <div class="img"><a href="<?php echo $list[$i]['href'];?>"><span class="roll sports"></span><?php echo $img;?></a></div>
            <div class="inner"><p class="tit"><?php
            //echo $list[$i]['icon_reply']." ";
            echo "<a href=\"".$list[$i]['href']."\">";
            if ($list[$i]['is_notice'])
                echo "<strong>".$list[$i]['subject']."</strong>";
            else
                echo $list[$i]['subject'];

            if ($list[$i]['comment_cnt'])
                echo $list[$i]['comment_cnt'];

            // if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
            // if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }

            if (isset($list[$i]['icon_new'])) echo " " . $list[$i]['icon_new'];
             ?></a><br><?php echo cut_str(strip_tags($list[$i]['wr_content']),38);?></p>
            </div>
        </li>
    <?php }  ?>
    <?php if (count($list) == 0) { //게시물이 없을 때  ?>
    <li>게시물이 없습니다.</li>
    <?php }  ?>
    </ul>
    <div class="lt_more"><a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table ?>"><span class="sound_only"><?php echo $bo_subject ?></span><img src='<?php echo $latest_skin_url ?>/img/more.gif'></a></div>
</div>​ 

 

 

 

 

 

아래는 style.css 입니다. 혹시나 여기 수정이 필요한지 몰라서 같이 올립니다.

 

 

.ltx .img{float:left;border:1px solid #e5e5e5;padding:2px;}
.datatime {float: right;margin:0 ;color:#000000;}
.ltx .inner .tit{width:215px;height:55px;display:block;padding:2px 0 3px;line-height:17px}
.ltx .nner .desc{width:215px;margin:0px;}
.ltx .inner .txt{text-align:right;padding-right:0px}


/* 새글 스킨 (latest) */
.ltx_pc {float:left;margin-left:20px}
.ltx {position:relative;float:left;margin-bottom:20px;padding:13px;width:290px;height:150px;border:1px solid #e5e5e5}
.ltx ul {margin::0px 0 0 10px;padding:0;list-style:none}
.ltx li {padding:0px 0;line-height:20px}
.ltx li a:link, a:visited {text-decoration:none}
.ltx li a:hover{color:#0097dd;text-decoration:none}
.ltx .lt_title {display:block;padding:10px 0 8px;border-bottom:1px solid #e5e5e5;}
.ltx .lt_more {position:absolute;top:10px;right:0;padding:13px}
.datatime {float: right;margin:0 ;color:#000000;}​

이 질문에 댓글 쓰기 :

답변 1

$thumb_width=50;
$thumb_height=50;

이 부분 수정하는 것 아닌가요?

 

답변을 작성하시기 전에 로그인 해주세요.
전체 13
QA 내용 검색

회원로그인

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