채택완료

이미지 사이즈 문제가 있습니다.

view.skin.php 파일에서 
아래처럼 되어있습니다
첨부파일이미지가  로딩되어보여지는 것인데
첨부된 이미지파일 가로,세로 사이즈가 달라도 똑같은 크기로 보여지게 하고 싶습니다
아래를 어떻게 수정해야 하는지요?

   <?php
        // 파일 출력
        $v_img_count = count($view['file']);
        if ($v_img_count) {
        ?>
        <div id="jssor_1" style="position: relative; margin: 0 auto; top: -1px; left: 0px; width: 1000px; height: 600px; overflow: hidden; visibility: hidden;">
            <!-- Loading Screen -->

            <div data-u="slides" style="cursor: default; position: relative; top: 0px; left: 0px; width: 1000px; height: 600px; overflow: hidden;">
                <? 
                for ($i=0; $i<=count($view['file']); $i++) { 
                    if ($view['file'][$i]['view']) {
                ?>
                    <div data-p="225.00" style="display: none;">
                    <?
                    echo get_view_thumbnail($view['file'][$i]['view']);
                    ?>
                    </div>
                <? 
                    }
                } 
                ?>
            </div>
|

답변 1개 / 댓글 1개

채택된 답변
+20 포인트
2026-03-30 (월) 17:21:09
#jssor_1 [data-u="slides"] img {width: 100%;height: 600px;object-fit: cover;}
만약 
다보여야한다?
object-fit: contain;
대신 공간생길수 잇으니 백그라운드 색을 맞쳐주시면됩니다.

답변에 대한 댓글 1개

잘됩니다 감사합니다 ^^

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