随笔 - 101,  文章 - 0,  评论 - 3,  阅读 - 18万

https://developers.weixin.qq.com/community/develop/article/doc/000848be624280e0112a2c8bb56c13

checkbox {
  width: 28rpx;
  height: 28rpx;
}
 /* 未选中的 背景样式 */
checkbox .wx-checkbox-input{
  width: 28rpx;
  height: 28rpx;
  border-radius: 4rpx;
  border: 1px solid rgba(0, 0, 0, 0.15);
}
/* 选中后的 背景样式*/
checkbox .wx-checkbox-input.wx-checkbox-input-checked{
  border: 1rpx solid #FF6600;
  background: #FF6600;
}
/* 选中后的 对勾样式 */
checkbox .wx-checkbox-input.wx-checkbox-input-checked::before{
  width: 28rpx;
  height: 28rpx;
  line-height: 28rpx;
  text-align: center;
  font-size:30rpx;
  color:#fff; /* 对勾颜色 白色 */
  background: transparent;
  transform:translate(-50%, -50%) scale(1);
  -webkit-transform:translate(-50%, -50%) scale(1);
}


posted on   sandy.simple  阅读(635)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
点击右上角即可分享
微信分享提示