chenMeiFeng

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

微信小程序中修改单选和多选框的样式

radio .wx-radio-input {
width: 28rpx;
height: 28rpx;
margin-right: 15rpx;
border-radius: 50%;
}

/*radio选中后样式 */
radio .wx-radio-input.wx-radio-input-checked {
width: 28rpx;
height: 28rpx;
background: #3A7EFD !important;
border-color: #3A7EFD !important;
}

/*radio选中后图标样式 */
radio .wx-radio-input.wx-radio-input-checked::before {
font-size: 22rpx;
color: #fff;
transform: translate(-50%, -50%) scale(1);
-webkit-transform: translate(-50%, -50%) scale(1);
}

/checkbox的大小/ checkbox .wx-checkbox-input {
width: 34rpx;
height: 34rpx;
border-radius: 50%;
}

/*checkbox选中后样式 */
checkbox .wx-checkbox-input.wx-checkbox-input-checked {
background: #0394F0;
border-color: #0394F0;
}

/*checkbox选中后图标样式 */
checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
width: 20rpx;
height: 20rpx;
line-height: 20rpx;
text-align: center;
font-size: 22rpx;
color: #fff;
background: transparent;
transform: translate(-50%, -50%) scale(1);
-webkit-transform: translate(-50%, -50%) scale(1);
}

 

 

H5页面

/deep/ uni-checkbox .uni-checkbox-input {
border-radius: 50%;
width: 40rpx;
height: 40rpx;
border: 2rpx solid #cccccc;
}

/deep/ uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked {
border: 2rpx solid #cccccc;
border-color: #1A8FFF;
background: -webkit-linear-gradient(#1A8FFF, #1A8FFF);
}

/deep/ uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked:before {
font-size: 32rpx;
color: #fff;
}

 

https://www.cnblogs.com/sunRiseProgress/p/15210426.html

 

posted on   CV搬运工  阅读(623)  评论(0编辑  收藏  举报

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