微信小程序中官方组件默认样式修改

把需要修改的样式放在app.wxss中

 

swiper

面板指示点:

.wx-swiper-dots.wx-swiper-dots-horizontal{

margin:20px //调整位置

.wx-swiper-dot{}//指示点未选中样式

.wx-swiper-dot-active{}//指示点选中样式

button

去除边框:

button::after { border: none; }

checkbox

.wx-checkbox-input{}//未选中的框

.wx-checkbox-input.wx-checkbox-input-checked{}//选中的框

.wx-checkbox-input.wx-checkbox-input-checked::before{}//选中的框里的小勾

radio

.wx-radio-input{}// 未选中

.wx-radio-input.wx-radio-input-checked{}//选中

.wx-radio-input.wx-radio-input-checked::before{}//选中的小勾

progress

.wx-progress-inner-bar{}//已选择的进度条

switch

.wx-switch-input{}//

 
 
posted @   Magi黄元  阅读(1007)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· 单线程的Redis速度为什么快?
· 展开说说关于C#中ORM框架的用法!
· Pantheons:用 TypeScript 打造主流大模型对话的一站式集成库
点击右上角即可分享
微信分享提示