当前位置:网站首页>小程序使用npm包定制全局样式
小程序使用npm包定制全局样式
2022-07-30 04:36:00 【像费曼%】
1.vant Weapp 使用css变量来实现定制主题,关于css变量的基本用法,参考MDN文档:
https://developer.mozilla.org/zh-CN/docs/Web/CSS/Using_CSS_custom_properties
2.定制全局主题样式
在app.wxss中,写入css变量,即可对全局生效:
/*app.wxss*/
page{
/*定制警告按钮背景颜色和边框颜色*/
--button-danger-background-color:#e2bcbc;
--button-danger-border-color:#83b8e4;
}

边栏推荐
- 我的Go+语言初体验——祝福留言小系统,让她也可以感受到你的祝福
- Introduction to database - MySQL simple introduction
- Image stitching (registration) case based on OpenCV
- My first experience of Go+ language——Blessing message system, so that she can also feel your blessings
- labelme的使用技巧
- Thinkphp 5.0.24 Variable Override Vulnerability Causes RCE Analysis
- DAY17: weak password detection and test
- (Problem practice) Conditional probability + weight line segment tree + FWT + suffix array
- Stimulsoft ReportsJS and DashboardsJS. 2022.3.3
- 解决报错SyntaxError: (unicode error) ‘utf-8‘ codec can‘t decode byte 0xb7 in position 0: invalid start b
猜你喜欢

golang八股文整理(持续搬运)

@ WebServlet annotations (Servlet annotations)

Discourse Custom Header Links

数据库概论 - MySQL的简单介绍

webService接口

MySQL 操作语句大全(详细)

模拟问题(中)

KubeMeet Registration | The complete agenda of the "Edge Native" Online Technology Salon has been announced!
Go study notes (84) - Go project directory structure
![[Redis Master Cultivation Road] Jedis - the basic use of Jedis](/img/e3/0c6efd03432a01f857796f0bf648ef.png)
[Redis Master Cultivation Road] Jedis - the basic use of Jedis
随机推荐
Simple experiment with BGP
2.6基数排序(桶排序)
WPF recursively obtains the list of specified control types in the form
Usage of EFR32 as sniffer for Zigbee/Thread
共建共享数字世界的根:阿里云打造全面的云原生开源生态
The Double Pointer Problem (Part 1)
Learning of redis_Basic part
C. Travelling Salesman and Special Numbers (binary + combination number)
商品管理系统数据库设计--SQL Server
MYSQL 唯一约束
【软件工程之美 - 专栏笔记】31 | 软件测试要为产品质量负责吗?
Web page element parsing a tag
Install MySQL Database on Kylin V10 Operating System
双指针问题(中)
【翻译】Envoy Fundamentals,这是一个培训课程,使人们能够更快地采用Envoy Proxy。...
How to use labelme
解决报错SyntaxError: (unicode error) ‘utf-8‘ codec can‘t decode byte 0xb7 in position 0: invalid start b
- B + tree index and MySQL series 】 【 what is the difference between a HASH index
KubeMeet Registration | The complete agenda of the "Edge Native" Online Technology Salon has been announced!
Classification of decision tree classification