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으로ㅠㅠㅠ
도저희 모르겠어서 질문드립니다.
!-->!-->!-->답변 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;}
그냥 이걸로 수정했습니다^^=- 감사합니다
답변을 작성하시기 전에 로그인 해주세요.