当前位置:网站首页>Wechat applet switch style rewriting
Wechat applet switch style rewriting
2022-06-13 02:55:00 【Tianma 3798】
One 、switch Switch assembly , There are fixed styles and sizes in the applet
If you want to customize the style, you need to rewrite , The rewrite style is as follows :
.wx-switch-input {}.wx-switch-input::before {}.wx-switch-input::after {}Two 、 The rewrite example is as follows :
Be careful :border、box-shadow Style reset , Otherwise, there will be visual deviation
/******************switch effect ********************/
.wx-switch-input {
width: 35px !important;
height: 18px !important;
box-sizing: border-box;
position: relative;
border: 0px !important;
}
.wx-switch-input::before {
width: 35px !important;
height: 18px !important;
background: #CCCCCC !important;
border: 0px solid #CCCCCC !important;
box-shadow: none !important;
left: 0px;
top: 0px;
}
.wx-switch-input::after {
width: 16px !important;
height: 16px !important;
top: 1px !important;
left: 0px !important;
opacity: 1 !important;
box-sizing: border-box;
box-shadow: none !important;
border: 0px !important;
}
more :
Applet Image Component long press to identify supported codes
边栏推荐
- Hash table: least recently used cache
- In my ten years, every bit has become a landscape?
- [data analysis and visualization] key points of data drawing 4- problems of pie chart
- Rough understanding of wechat cloud development
- Mp4 playback
- Linked list: adding numbers in the linked list
- Keil去掉烦人的ST-Link更新提示
- Linked list: reverse linked list
- Hash tables: metaphrases
- Techniques for collecting stringgrid
猜你喜欢

OneNote User Guide (1)

Binary tree initialization code

The extra money we made in those years

05 tabbar navigation bar function

Matlab: obtain the figure edge contour and divide the figure n equally

Pycharm and Anaconda ultra detailed installation and configuration tutorial

Five old code farmers, program life review: peace of mind is not the place to go

OpenCVSharpSample04WinForms
![[data analysis and visualization] key points of data drawing 4- problems of pie chart](/img/e1/618ff53b33b4b1de6acf4942130c17.jpg)
[data analysis and visualization] key points of data drawing 4- problems of pie chart

Spark UDF instance details
随机推荐
Ijkplayer source code - setting options
2022 qianle micro cloud technology learning task plan
[data and Analysis Visualization] D3 introductory tutorial 2- building shapes in D3
How did you spend your winter vacation perfectly?
Linked list: the first coincident node of two linked lists
[deep learning] fast Reid tutorial
Opencv 07, pixel read, change and bitmap write
Graduation project - campus old thing recycling system based on stm32
Ijkplayer source code ---setdatasource
Introduction and download of common data sets for in-depth learning (with network disk link)
IOS development internal volume interview questions
Linked list: adding numbers in the linked list
Traverse the array and delete an element until it is deleted
Stack: daily temperature
Spark UDF instance details
数仓笔记|针对客户维度建模需要关注的5个因素
Principle and steps of principal component analysis (PCA)
二叉樹初始化代碼
[data analysis and visualization] key points of data drawing 8- use of circular bar chart
Change the topic of change tax