lastest 갤러리 오류 위치 오류..ㅠㅠ

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!
lastest 갤러리 오류 위치 오류..ㅠㅠ

QA

lastest 갤러리 오류 위치 오류..ㅠㅠ

본문

css 소스


/* 갤러리 스킨 (latest) */
.lt {padding: 20px 20px;font-size: 12px;}
.lt h3 {margin-bottom: 20px;padding-bottom: 20px;font-size: 20px;color: #333;border-bottom: 2px solid #13488e;}
.lt h3 a {text-decoration:none;}
.lt ul {margin:0 0 10px;padding:0;list-style:none}
.lt dl {float: left;margin-right: 5px;margin-left: 5px;width: 165px;height:130px;position:relative;}
.lt dl dd a > img {width: 165px;height: 130px;zoom:1;}

 

라스트 스킨


include_once(G5_LIB_PATH.'/thumbnail.lib.php');
// thumbnail size
isset($options['width'])    ? $width = $options['width'] : $width = 165;
isset($options['height'])    ? $height = $options['height'] : $height = 130;
isset($options['radius'])    ? $radius = $options['radius'] : $radius = 2;
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">', 0);
?>
<!-- <?php echo $bo_subject; ?> 최신글 시작 { -->
<section class="lt">
    <h3><?php if($bo_subject) { ?>
    <a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table ?>"><?php echo $bo_subject; ?></a>
    <?php } else { ?>
    <a href="#">게시판 불러오기 오류</a>
    <? } ?></h3>
    <ul>
    <?
    $count_image = 0;
    for ($i=0; $i<count($list); $i++) {
        if ( $count_image >= 4 ) break;
                        $thumb = get_list_thumbnail($bo_table, $list[$i]['wr_id'], $width, $height);                                    
                        if($thumb['src']) {
                            $img = '<img src="'.$thumb['src'].'">';
                            $count_image ++;
                        } else {
                            continue;
                        }
    ?>
        <dl>
            <dd>
                <a href="<?=$list[$i]['href']?>"><?=$img?></a>
            </dd>
            <dt>
                <a href="<?=$list[$i]['href']?>"><?php echo cut_str($list[$i]['subject'], 20, "..") ?>
            </dt>
        </dl>
<?php } ?>
    <?php if (count($list) == 0) { //게시물이 없을 때  ?>
    <dt class="lt_none">게시물이 없습니다.</dd>
    <?php }  ?>
    </ul>

    <a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table ?>" class="lt_more"></a>
</section>
<!-- } <?php echo $bo_subject; ?> 최신글 끝 -->

 


<section class="lt">
    <h3>    <a href="http://127.0.0.1/bbs/board.php?bo_table=gallery">활동사진</a>
    </h3>
    <ul>
            <dl>
            <dd>
                <a href="http://127.0.0.1/bbs/board.php?bo_table=gallery&wr_id=37"><img src="http://127.0.0.1/data/editor/1712/thumb-5ff6ed719820f7ab5531a0e95eb7dca8_1513749274_5358_165x130.jpg"></a>
            </dd>
            <dt>
                <a href="http://127.0.0.1/bbs/board.php?bo_table=gallery&wr_id=37">1</a>           </dt>
        </dl>
        <dl>
            <dd>
                <a href="http://127.0.0.1/bbs/board.php?bo_table=gallery&wr_id=36"><img src="http://127.0.0.1/data/editor/1712/thumb-f62c258ae1189d1ff4854f53db4e832b_1513213437_9324_165x130.jpg"></a>
            </dd>
            <dt>
                <a href="http://127.0.0.1/bbs/board.php?bo_table=gallery&wr_id=36">3</a>            </dt>
        </dl>
        <dl>
            <dd>
                <a href="http://127.0.0.1/bbs/board.php?bo_table=gallery&wr_id=35"><img src="http://127.0.0.1/data/editor/1712/thumb-1f6d0514d3c406e31837e5f2642d6011_1512962449_5271_165x130.jpg"></a>
            </dd>
            <dt>
                <a href="http://127.0.0.1/bbs/board.php?bo_table=gallery&wr_id=35">2</a>            </dt>
        </dl>
        </ul>

    <a href="http://127.0.0.1/bbs/board.php?bo_table=gallery" class="lt_more"></a>
</section>

 

 

왜 이렇게 밀려서 뜰까요 ㅠㅠㅠ

 


또 이미지 사이즈가 재각각인데

확대하여 어떻게 정확히 맞추는지 알고싶습니다.

165x140으로ㅠㅠㅠ

도저희 모르겠어서 질문드립니다.

1949088146_1514435287.3384.png

이 질문에 댓글 쓰기 :

답변 2

리스트 스킨 21줄에서

 

$thumb = get_list_thumbnail($bo_table, $list[$i]['wr_id'], $width, $height);   

$thumb = get_list_thumbnail($bo_table, $list[$i]['wr_id'], $width, $height, true, true);

로 변경해보세요

.gt dd img {margin-left: -35px;}
.gt dt {margin-left: 10px;text-align: center;font-size: 14px;overflow: hidden;text-overflow: ellipsis;word-break: break-all;white-space: nowrap;}
그냥 이걸로 수정했습니다^^=- 감사합니다

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

회원로그인

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