테스트 사이트 - 개발 중인 베타 버전입니다

페이지 세로 슬라이드 세로크기 다르게 될까요? 채택완료

dim 4년 전 조회 2,402

http://sallypak.cafe24.com/hy2/sub_test.html

 

 

세로 슬라이드 이미지 크기가 다른데요.
왼쪽에 도트가 창크기 768로만 잡히는데요.

이미지 한장 지나갈때마다 나오게 하고 싶은데요.

어디를 고치면 될까요?

 

<style>
        html,
        body {
            position: relative;
            height: auto;
        }


        .swiper-container {
            width: 100%;
            height: 100%;
        }

        .swiper-slide {
            text-align: center;
            font-size: 18px;
            background: #fff;

            /* Center slide text vertically */
            display: -webkit-box;
            display: -ms-flexbox;
            display: -webkit-flex;
            display: flex;
            -webkit-box-pack: center;
            -ms-flex-pack: center;
            -webkit-justify-content: center;
            justify-content: center;
            -webkit-box-align: center;
            -ms-flex-align: center;
            -webkit-align-items: center;
            align-items: center;
        }
        .swiper-slide:nth-child(1) {
          height:66.1458%;
        }

        .swiper-slide:nth-child(2) {
          height: 74.7395;
        }
        .swiper-slide:nth-child(3) {
          height:132.82%;
        }

        .swiper-slide:nth-child(4) {
          height: 128.125%;
        }
        .swiper-slide:nth-child(5) {
          height:84.9609%;
        }

        .swiper-slide:nth-child(6) {
          height: 58.3333%;
        }
        
    </style>

 

 

<!-- Swiper JS -->
    <script src="js/swiper-bundle.min.js"></script>

    <!-- Initialize Swiper -->
    <script>
        var swiper = new Swiper('.swiper-container', {
            direction: 'vertical',
            slidesPerView: 1,
            spaceBetween: 0,
            mousewheel: true,
            pagination: {
                el: '.swiper-pagination',
                clickable: true,
            },
        });
    </script>


 

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

답변 1개

채택된 답변
+20 포인트

링크가 사라졋어요

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

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

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

로그인