当前位置:网站首页>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
边栏推荐
- Detailed explanation of UCI datasets and their data processing (with 148 datasets and processing codes attached)
- 【pytorch 記錄】pytorch的變量parameter、buffer。self.register_buffer()、self.register_parameter()
- 数字IC设计——FIFO的设计
- Vant realizes the adaptation of mobile terminal
- Pycharm and Anaconda ultra detailed installation and configuration tutorial
- String: number of substring palindromes
- My practice of SOA architecture project based on WCF
- Summary of the latest IOS interview questions in June 2020 (answers)
- OpenCVSharpSample04WinForms
- Linked list: reverse linked list
猜你喜欢
Image classification system based on support vector machine (Matlab GUI interface version)
Node uses post to request req Pit with empty body
【pytorch 记录】pytorch的变量parameter、buffer。self.register_buffer()、self.register_parameter()
How can intelligent safe power distribution devices reduce the occurrence of electrical fire accidents?
Prometheus node_ Exporter installs and registers as a service
Pycharm and Anaconda ultra detailed installation and configuration tutorial
JS deconstruction assignment
A wechat app for shopping
Use of OpenCV 12 findcircuits and drawcircuits
Why does it feel that most papers still use RESNET as the backbone network rather than densenet?
随机推荐
[data analysis and visualization] key points of data drawing 5- the problem of error line
redis. Conf general configuration details
Prometheus node_ Exporter installs and registers as a service
Summary of the latest IOS interview questions in June 2020 (answers)
Introduction to facial expression recognition system -- offline environment configuration
Linked list: reverse linked list
[deep learning] fast Reid tutorial
遍历数组,删除某元素,直到删除为止
Keil去掉烦人的ST-Link更新提示
Ijkplayer source code ---setdatasource
[life science] DNA extraction of basic biological experiments
FFmpeg原理
Linked list: the first coincident node of two linked lists
Node uses post to request req Pit with empty body
02 optimize the default structure of wechat developer tools
AAR packaging and confusion
冲刺强基计划数学物理专题一
JS multiple judgment writing
[data analysis and visualization] key points of data drawing 4- problems of pie chart
Flutter reports an error type 'Int' is not a subtype of type 'string' wonderful experience