모바일 상세페이지 상품 썸네일 미작동

모바일 상세페이지 상품 썸네일 미작동

QA

모바일 상세페이지 상품 썸네일 미작동

답변 1

본문

PC에서는 썸네일 이미지가 잘 작동합니다만 모바일에서는 작동하지 않습니다.

반응형이라 같이 작동할것 같은데 개발자가 아니라 이유를 모르겠습니다. ㅠㅠ

 

        <!-- 상품이미지 미리보기 시작 { -->
        <div id="sit_pvi">
            <div id="sit_pvi_big">
            <?php
            $big_img_count = 0;
            $thumbnails = array();
            for($i=1; $i<=10; $i++) {
                if(!$it['it_img'.$i])
                    continue;
    
                $img = get_it_thumbnail($it['it_img'.$i], $default['de_mimg_width'], $default['de_mimg_height']);
    
                if($img) {
                    // 썸네일
                    $thumb = get_it_thumbnail($it['it_img'.$i], 70, 70);
                    $thumbnails[] = $thumb;
                    $big_img_count++;
    
                    //echo '<a href="'.G5_SHOP_URL.'/largeimage.php?it_id='.$it['it_id'].'&no='.$i.'" target="_blank" class="popup_item_image">'.$img.'</a>';
                    echo '<a href="#">'.$img.'</a>';
                }
            }
    
            if($big_img_count == 0) {
                echo '<img src="'.G5_SHOP_URL.'/img/no_image.gif" alt="">';
            }
            ?>
            <!--<a href="<?php echo G5_SHOP_URL; ?>/largeimage.php?it_id=<?php echo $it['it_id']; ?>&no=1" target="_blank" id="popup_item_image" class="popup_item_image"><i class="fa fa-search-plus" aria-hidden="true"></i><span class="sound_only">확대보기</span></a>-->
            </div>
            <?php
            // 썸네일
            $thumb1 = true;
            $thumb_count = 0;
            $total_count = count($thumbnails);
            if($total_count > 0) {
                echo '<ul id="sit_pvi_thumb">';
                foreach($thumbnails as $val) {
                    $thumb_count++;
                    $sit_pvi_last ='';
                    if ($thumb_count % 5 == 0) $sit_pvi_last = 'class="li_last"';
                        echo '<li '.$sit_pvi_last.'>';
                        //echo '<a href="'.G5_SHOP_URL.'/largeimage.php?it_id='.$it['it_id'].'&no='.$thumb_count.'" target="_blank" class="popup_item_image img_thumb">'.$val.'<span class="sound_only"> '.$thumb_count.'번째 이미지 새창</span></a>';
                        echo '<a href="#" class="img_thumb">'.$val.'</a>';
                        echo '</li>';
                }
                echo '</ul>';
            }
            ?>
        </div>
        <!-- } 상품이미지 미리보기 끝 -->

이 질문에 댓글 쓰기 :

답변 1

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