微信小程序checkbox的样式改变

checkbox .wx-checkbox-input{
    border-radius: 3rpx;
    height: 26rpx;
    width: 26rpx;
    margin-top: -4rpx;
    border: 1rpx solid orange;
}
checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
  width: 28rpx;
  height: 28rpx;
  line-height: 28rpx;
  text-align: center;
  font-size: 22rpx;
  color: #fff;
  background: transparent;
  transform: translate(-50%, -50%) scale(1);
  -webkit-transform: translate(-50%, -50%) scale(1);
  background-color: orange;

border: 1rpx solid orange;
}

 

posted on 2018-09-10 17:48  王保利d窝  阅读(4935)  评论(0编辑  收藏  举报

导航