You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
111 lines
1.9 KiB
111 lines
1.9 KiB
page {
|
|
height: 100%;
|
|
box-sizing: border-box; /* 避免设置padding出现双滚动条的问题 */
|
|
}
|
|
|
|
.mescroll-uni-warp{
|
|
height: 50%;
|
|
}
|
|
|
|
.mescroll-uni {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
min-height: 100upx;
|
|
overflow-y: auto;
|
|
box-sizing: border-box; /* 避免设置padding出现双滚动条的问题 */
|
|
}
|
|
|
|
/* 定位的方式固定高度 */
|
|
.mescroll-uni-fixed{
|
|
z-index: 1;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
width: auto; /* 使right生效 */
|
|
height: auto; /* 使bottom生效 */
|
|
}
|
|
|
|
/* 下拉刷新区域 */
|
|
.mescroll-downwarp {
|
|
position: absolute;
|
|
top: -30%;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 30%;
|
|
text-align: center;
|
|
}
|
|
|
|
/* 下拉刷新--内容区,定位于区域底部 */
|
|
.mescroll-downwarp .downwarp-content {
|
|
position: absolute;
|
|
left: 0;
|
|
bottom: 0;
|
|
width: 100%;
|
|
min-height: 30upx;
|
|
padding: 20upx 0;
|
|
text-align: center;
|
|
}
|
|
|
|
/* 上拉加载区域 */
|
|
.mescroll-upwarp {
|
|
min-height: 60upx;
|
|
padding: 30upx 0;
|
|
text-align: center;
|
|
clear: both;
|
|
}
|
|
|
|
/* 下拉刷新,上拉加载--提示文本 */
|
|
.mescroll-downwarp .downwarp-tip,
|
|
.mescroll-upwarp .upwarp-tip,
|
|
.mescroll-upwarp .upwarp-nodata {
|
|
display: inline-block;
|
|
font-size: 28upx;
|
|
color: gray;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.mescroll-downwarp .downwarp-tip,
|
|
.mescroll-upwarp .upwarp-tip {
|
|
margin-left: 16upx;
|
|
}
|
|
|
|
/* 下拉刷新,上拉加载--旋转进度条 */
|
|
.mescroll-downwarp .downwarp-progress,
|
|
.mescroll-upwarp .upwarp-progress {
|
|
display: inline-block;
|
|
width: 32upx;
|
|
height: 32upx;
|
|
border-radius: 50%;
|
|
border: 2upx solid gray;
|
|
border-bottom-color: transparent;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
/* 旋转动画 */
|
|
.mescroll-rotate {
|
|
-webkit-animation: mescrollRotate 0.6s linear infinite;
|
|
animation: mescrollRotate 0.6s linear infinite;
|
|
}
|
|
|
|
@-webkit-keyframes mescrollRotate {
|
|
0% {
|
|
-webkit-transform: rotate(0deg);
|
|
}
|
|
|
|
100% {
|
|
-webkit-transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
@keyframes mescrollRotate {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
|
|
100% {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|