이미지 썸네일

이미지 썸네일

QA

이미지 썸네일

답변 1

본문

   <ul class="gall_con">

                <li class="gall_href">

                    <a href="<?php echo $list[$i]['href'] ?>">

                    <?php

                    if ($list[$i]['is_notice']) { // 公告  ?>

                        <strong style="width:<?php echo $board['bo_gallery_width'] ?>px;height:<?php echo $board['bo_gallery_height'] ?>px">公告</strong>

                    <?php } else {

                        $thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height']);

 

                        if($thumb['src']) {

                            $img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$board['bo_gallery_width'].'" height="'.$board['bo_gallery_height'].'">';

                        } else {

                            $img_content = '<span style="width:'.$board['bo_gallery_width'].'px;height:'.$board['bo_gallery_height'].'px">no image</span>';

                        }

 

                        echo $img_content;

                    }

                     ?>

 

갤러리 게시판에 올렸을때 view 사진 크기는 그대로 하고

 

list에서 보일때 사진이 300x300 사이즈로 보이게 하고 싶습니다.. 제가 잘 설명을 못해서 그러는데

 

이부분을 수정해야 되는거 같은데. 300x300보다 큰 사이즈의 사진을 올리게 되면

 

list에서 보이는 사진이 잘려서 출력되요... 도와주시면 감사합니다..

 

잘 이해가 안되시면 댓글 달아주시면 다시 설명을 드려볼게요 ㅠ

이 질문에 댓글 쓰기 :

답변 1

$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height'], false, false); 

$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height']);
이것을

$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height'], false, false);
이렇게 수정

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 37
© SIRSOFT
현재 페이지 제일 처음으로