썸네일 크기변경이 안됩니다ㅠㅠ 도움부탁드려요
본문
가로로 좀더 넓히고싶습니다!!
index 페이지에서 썸네일 크기 아무리건드려봐도 반응이없구요....
<section class="tl_main_gallery_wrap">
<div class="inner clearfix">
<?php
$bo_table = 'tl_gallery';
$rows = 30;
$subject_len = 20;
$cache_time = 1;
$options = array(
'thumb_width'=>400,
'thumb_height'=>0,
'content_len'=>6,
latest_skin 에서도 건드려도 크기엔 아무반응이없습니다. 머가문제일까요?
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">', 0);
$thumb_width = is_numeric($options['thumb_width']) ? $options['thumb_width'] : 200;
$thumb_height = 0;
$title = $options['title'] ? $options['title'] : $bo_subject;
$content_len = is_numeric($options['content_len']) ? $options['content_len'] : 100;
?>
<div class="inner clearfix">
<h2 class="lat_title">
<?php echo $title ?>
<span><?php echo $options['sub_title'] ?></span>
</h2>
<ul>
<?php
shuffle($list);
for ($i=0; $i<count($list); $i++) {
$thumb = get_list_thumbnail($bo_table, $list[$i]['wr_id'], $thumb_width, $thumb_height, false, true);
if($thumb['src']) {
$img = $thumb['src'];
} else {
$img = $latest_skin_url.'/no_img.png';
}
//$img_content = '<img src="'.$img.'" alt="'.$thumb['alt'].'">';
$bg_style = "background-image:url(".$img.");";
?>
<li class="aos-init aos-animate" data-aos-delay="0">
<a href="<?php echo $list[$i]['href'] ?>" class="one_box">
<div style="overflow:hidden; width:70%">
<div class="photo" title="<?php echo get_text($thumb['alt']); ?>" style="<?php echo $bg_style ?>"></div>
</div>
<dl>
<dt>
<?php
if ($list[$i]['is_notice'])
echo "<strong>".$list[$i]['subject']."</strong>";
else
echo $list[$i]['subject']; ?>
</dt>
<dd> <?php
echo get_text(cut_str(strip_tags(str_replace(' ', ' ', $list[$i]['wr_content'])), $content_len,'…'));
?></dd>
</dl>
</a>
</li>
<?php } ?>
<?php if (count($list) == 0) { //게시물이 없을 때 ?>
<li class="empty_li">게시물이 없습니다.</li>
<?php } ?>
</ul>
</div>
답변 3
lastest 스킨의 style.css 를 수정해야 합니다.
왜 사람들은 CSS 관련 질문할때 엉뚱한곳의 소스를 첨부하고
URL 을 오픈하지 않는걸까요??
소스열어서 붙여넣기의 문제가 아니에요..
저 부분은 뼈대이고 저 뼈대를 조각에 맞게 맞춰주는게 CSS 입니다..