laypage({
cont: 'demo3'
,pages: 100
,first: 1
,last: 100
,prev: '上一题'
,next: '下一题'
});
后来用了swiper来做的 上下关联的切换,改了swiper的样式位置。 布局到自己想要的位置
我是将切换的图标放到了右下角,如图所示的位置
.swiper-container2 .swiper-wrapper {
width: 1020px !important;
}
.swiper-container2 .swiper-button-next:after,
.swiper-container2 .swiper-container-rtl .swiper-button-prev:after {
font-size: 12px;
margin-left: 10px;
}
.swiper-container2 .swiper-button-prev:after,
.swiper-container2 .swiper-container-rtl .swiper-button-next:after {
font-size: 12px;
margin-left: 10px;
text-indent: -75px
}
.swiper-container2 .swiper-button-next,
.swiper-container2 .swiper-container-rtl .swiper-button-prev {
right: 140px;
width: 80px;
font-size: 16px;
font-weight: 600;
color: #000;
line-height: 44px;
}
.swiper-container2 .swiper-button-prev,
.swiper-container2 .swiper-container-rtl .swiper-button-next {
left: 640px;
width: 60px;
font-size: 16px;
font-weight: 600;
color: #000;
line-height: 44px;
}
.swiper-container2 .swiper-container-horizontal>.swiper-container2.swiper-pagination-bullets,
.swiper-container2 .swiper-pagination-custom,
.swiper-container2 .swiper-pagination-fraction {
bottom: 35%;
width: 70px;
left: 715px;
}
.swiper-container2 .swiper-container-horizontal span>.swiper-container2.swiper-pagination-bullets span,
.swiper-container2 .swiper-pagination-custom span,
.swiper-container2 .swiper-pagination-fraction span {
font-weight: 600;
}