当前位置:网站首页>[uniapp checkbox] modify the style of the uniapp checkbox check box
[uniapp checkbox] modify the style of the uniapp checkbox check box
2022-07-18 20:28:00 【Ma Xiaotiao's coding advanced road】
Hello, everyone ~ I'm Ma Xiaotiao . An advanced program yuan .
Record every progress of your growth here , Hope to meet like-minded ape friends
Work together , Put technology together up up up!!!

1. stay APP.vue Write in style
Use uniapp Self contained checkbox when , The modified style must be in APP.vue Revision in China :
<style lang="scss"> // Customize checkbox The style of ( The class name is used when the element is used :mycheck) checkbox.mycheck .wx-checkbox-input, checkbox.mycheck .uni-checkbox-input {
width: 30rpx !important;
height: 30rpx !important;
background-color: #eeeeee !important;
border-radius: 5px !important;
border: solid 1px #cccccc !important;
}
// Selected Check style checkbox.mycheck .uni-checkbox-input-checked::before, checkbox.mycheck .wx-checkbox-input-checked::before{
// width: 25rpx !important; // Check the size of the tick when it is selected , Don't exceed the size of the background
// height: 25rpx !important; // Check the size of the tick when it is selected , Don't exceed the size of the background
font-size: 36rpx !important; // Check size 30rpx /
}
</style>
2. Add a custom class name to the page tag
The class name I use here is mycheck, Just add it to the label .
<checkbox :checked="agree_check" color="#3889fd" @click="checkboxChange" class="mycheck" />

ending~
边栏推荐
- The difference between synchronized and lock
- wallys/QCA9880/ WiFi 5 (802.11ac) mini PCIe cards deliver higher Tx power and performance (Sponsored
- Zkapp transaction snark in Mina
- Zordle: zkp based wordle application
- Still using system Currenttimemillis() statistics code time-consuming? Too low!
- Liu tiemeng's introduction to C language - detailed explanation of entrustment
- MultipartFile与base64互转
- Tree structure in Mina
- 私域论坛圈子社区小程序开发
- 2022 Hangzhou future science and technology city digital economy talent Programming Competition
猜你喜欢

实现一年的所有周当按钮

Using Imagenet and vgg16 model to train the depth neural network that can recognize stones, scissors and cloth

leetcode 43. String multiplication (string + simulation)

【学浪下载教程】04学浪下载之设置注册表,防止中文乱码

How to create Dutch auction smart contract

Economic dispatching of power system (complete code implementation in Matlab)

Realize all weekly buttons of a year

Test management knowledge: how to transform from a business expert to a grass-roots Manager

leetcode 45. Jump Game II (dp)
![(manual) [sqli-labs50-53] order by injection](/img/72/d3e46a820796a48b458cd2d0a18f8f.png)
(manual) [sqli-labs50-53] order by injection
随机推荐
BUCK 电路PSIM仿真模型搭建之二 (传递函数模块的使用)
3. Terminate thread
图论
Flutter对每个页面单独修改状态栏颜色
First experience of raspberry pie
【学浪下载教程】04学浪下载之设置注册表,防止中文乱码
Eight common SQL misuses in MySQL
接口测试—校验参数合法性/容错性测试
[in-depth learning] experience of renting online equipment platform and the pits (non advertising)
MultipartFile与base64互转
go ———数组与切片的区别
【C语言】条件编译的深入理解
淘特关键词搜索商品API接口(商品列表接口,销量排序接口,商品销量接口)
Codeforces Round #805 (Div. 3)(A,B,C,D)
1.3.2-sql injection - SQL blind injection - time blind injection
wallys/QCA9880/ WiFi 5 (802.11ac) mini PCIe cards deliver higher Tx power and performance (Sponsored
MySQL 66 questions, 20000 words + 50 pictures in detail! A little six!
Code of solidity
CAS的使用与原理
1.4.2-sql injection defense bypass - Secondary encoding injection