Skip to content

Commit 14bf1cd

Browse files
committed
修改swipe样式的位置
1 parent c66541d commit 14bf1cd

File tree

2 files changed

+35
-35
lines changed

2 files changed

+35
-35
lines changed

src/page/home/Home.vue

+35-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import tabBox from '@/components/TabBox'
3131
import footBottom from '@/components/Footer'
3232
import 'swiper/dist/css/swiper.css'
33-
import '../../style/swiper.scss'
3433
import { swiper, swiperSlide } from 'vue-awesome-swiper'
3534
3635
export default {
@@ -240,3 +239,38 @@ export default {
240239
}
241240
}
242241
</style>
242+
<style lang="scss">
243+
@import '../../style/variable.scss';
244+
.slider{
245+
height:268px;
246+
background-color:#d2d2d2;
247+
@at-root .myswiper{
248+
height: 100%;
249+
@at-root .swiper-img{
250+
width:100%;
251+
height:100%;
252+
}
253+
@at-root .slide-bullet {
254+
display: block;
255+
float:left;
256+
margin-left:11px;
257+
width:15px;
258+
height:15px;
259+
border:3px solid $green;
260+
border-radius: 50%;
261+
}
262+
@at-root .slide-bullet-active{
263+
background-color: $green;
264+
}
265+
}
266+
}
267+
.swiper-container-horizontal>.swiper-pagination-bullets, .swiper-pagination-custom, .swiper-pagination-fraction{
268+
position: absolute;
269+
left: initial;
270+
right:33px;
271+
bottom:15px;
272+
width:80px;
273+
height:15px;
274+
overflow: hidden;
275+
}
276+
</style>

src/style/swiper.scss

-34
This file was deleted.

0 commit comments

Comments
 (0)