채택완료

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

2017-12-28 (목) 13:28:17 2,360

css 소스

Copy
/* 갤러리 스킨 (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;}

라스트 스킨

Copy
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; ?> 최신글 끝 -->

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


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

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

165x140으로ㅠㅠㅠ

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

1949088146_1514435287.3384.png

|

답변 2개 / 댓글 2개

채택된 답변
+20 포인트

리스트 스킨 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);

로 변경해보세요

답변에 대한 댓글 1개

똑같네요 ㅠㅠ 사진크기는 맞춰졌어요!
2017-12-28 (목) 14:08:34

.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;}
그냥 이걸로 수정했습니다^^=- 감사합니다

답변에 대한 댓글 1개

아.. 그러시군요 ^^

답변을 작성하려면 로그인이 필요합니다.