Skip to content

Commit 85e5396

Browse files
committed
update: 调整slider组件到屏幕边缘的距离
1 parent 4704036 commit 85e5396

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

pages/component/swiper/swiper.vue

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</swiper-item>
1515
</swiper>
1616
</view>
17-
17+
1818
<view class="swiper-list">
1919
<view class="uni-list-cell uni-list-cell-pd">
2020
<view class="uni-list-cell-db">指示点</view>
@@ -70,31 +70,36 @@
7070

7171
<style>
7272
.uni-margin-wrap {
73-
width:690upx;
74-
margin:0 30upx;
73+
width:690rpx;
74+
margin:0 30rpx;
7575
}
7676
.swiper {
77-
height: 300upx;
77+
height: 300rpx;
7878
}
7979
.swiper-item {
8080
display: block;
81-
height: 300upx;
82-
line-height: 300upx;
81+
height: 300rpx;
82+
line-height: 300rpx;
8383
text-align: center;
8484
}
8585
8686
.swiper-list {
87-
margin-top: 40upx;
87+
margin-top: 40rpx;
8888
margin-bottom: 0;
8989
}
90-
90+
9191
.uni-common-mt{
92-
margin-top:60upx;
92+
margin-top:60rpx;
9393
position:relative;
9494
}
95-
95+
9696
.info {
9797
position: absolute;
98-
right:20upx;
99-
}
98+
right:20rpx;
99+
}
100+
101+
.uni-padding-wrap {
102+
width:550rpx;
103+
padding:0 100rpx;
104+
}
100105
</style>

0 commit comments

Comments
 (0)