微信小程序scroll-view组件的使用

一.样式展示

 缺陷:向左滑到一半,松手也不会恢复到原状

 二.代码展示

.task{
  width: 750rpx;
  height: auto;
  margin-top: 10rpx;
  background-color: #ffffff;
}
.page{
  white-space: nowrap;
  width: 715rpx;
  height: 250rpx;
  border-bottom:1px solid #e7e5e5;
  margin: 0 auto;
}
.page1{
  display: inline-block;
  margin-top: 31rpx;
  padding-left: 23rpx;
}
.page1 .box2{
  display: flex;
  align-items: center;
}
.page1 .box2 .t1{
  font-size: 30rpx;
  color: #000000;
}
.page1 .box2 .t2{
  font-size: 20rpx;
  padding-left: 22rpx;
  line-height: 19px;
  letter-spacing: 0px;
  color: #ffffff;
  z-index: 1;
}
.page1 .box2 .T1{
  width: 80rpx;
  height: 30rpx;
  position: relative;
  left: -68rpx;
  background-color: #00b14f;
  border-radius: 4px;
  z-index: 0;
}
.page1 .box1 .t3{
  font-size: 28rpx;
  line-height: 48rpx;
  color: #999999;
}
.page1 .box1 .t4{
  font-size: 28rpx;
  line-height: 48rpx;
  letter-spacing: 0px;
  color: #333333;
}
.page1 .box1 .t5{
  font-family: 'DIN';
  font-size: 30rpx;
}
.page1 .p1{
  width: 160rpx;
  height: 160rpx;
  border-radius: 4rpx; 
  position: relative;
  left: 530rpx;
  top: -180rpx;
}
.page .page2{
  display: inline-block;
  display: flex;
  height: 250rpx;
  width: 320rpx;
  position: relative;
  left: 714rpx;
  top: -400rpx;
}
.page .page2 .t1{
  width: 160rpx;
  height: 250rpx;
  background-color:#ff5454;
  font-size: 26rpx;
  line-height: 250rpx;
  text-align: center;
  letter-spacing: 0px;
  color: #ffffff;
}
.page .page2 .t2{
  width: 160rpx;
  height: 250rpx;
  background-color: #00b3ea;
  font-size: 26rpx;
  line-height: 250rpx;
  text-align: center;
  letter-spacing: 0px;
  color: #ffffff;
}
.page .page2 .delete{
  width: 23rpx;
  height: 22rpx;
}
.page .page2 .modify{
  width: 23rpx;
  height: 22rpx;
}

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值