2026, 새로운 도약을 시작합니다.

썸네일 크기변경이 안됩니다ㅠㅠ 도움부탁드려요 채택완료

3537669777_1713769513.2043.png

가로로 좀더 넓히고싶습니다!!

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('&nbsp;', ' ', $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개

채택된 답변
+20 포인트

lastest 스킨의 style.css 를 수정해야 합니다.

로그인 후 평가할 수 있습니다

답변에 대한 댓글 2개

@charset "utf-8";
/* 새글 스킨 (latest) */

style은 이게 끝입니다...
/skin/latest/스킨명/style.css 파일을 찾아보세요.
혹시 테마라면
/theme/테마명/skin/latest/스킨명/style.cs

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

소스열어서 붙여넣기의 문제가 아니에요..

저 부분은 뼈대이고 저 뼈대를 조각에 맞게 맞춰주는게 CSS 입니다..

로그인 후 평가할 수 있습니다

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

왜 사람들은 CSS 관련 질문할때 엉뚱한곳의 소스를 첨부하고

URL 을 오픈하지 않는걸까요??

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

엉뚱한소스아닙니다 소스열어서 복사붙혀넣기했는데요;;

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

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

로그인
🐛 버그신고