记一下uni-app复选框默认样式问题
/* #ifdef H5 */
uni-checkbox .uni-checkbox-input {
border-radius: 50% !important;
color: #ffffff !important;
}
uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked {
border: none !important;
background: #3d7eff;
border-color: #3d7eff;
}
uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked::before {
width: 20rpx;
height: 20rpx;
line-height: 20rpx;
text-align: center;
font-size: 18rpx;
color: #fff;
background: transparent;
transform: translate(-70%, -50%) scale(1);
-webkit-transform: translate(-70%, -50%) scale(1);
}
/* #endif */
/* 微信样式 */
/* #ifdef APP-PLUS ||MP-WEIXIN */
checkbox .wx-checkbox-input {
border-radius: 50% !important;
color: #ffffff !important;
}
checkbox .wx-checkbox-input.wx-checkbox-input-checked {
color: #fff;
background: #3d7eff;
}
.wx-checkbox-input.wx-checkbox-input-checked {
border: none !important;
}
/* #endif */ 继续阅读与本文标签相同的文章
上一篇 :
小程序button按钮误触发问题
下一篇 :
私域流量一般玩法
-
你见过微信侧滑返回的联动效果,但开门效果、百叶窗效果见过吗?
2026-05-23栏目: 教程
-
那些困扰你多年的项目管理问题,终于有解决方案了!
2026-05-23栏目: 教程
-
.Net Micro Framework研究—Digi开发板初探
2026-05-23栏目: 教程
-
.NET Framework/.NET Compact Framework等功能比较
2026-05-23栏目: 教程
-
VS2005 IDE的bug?
2026-05-23栏目: 教程
