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

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

QA

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

답변 1

본문

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

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