当前位置:网站首页>【微信小程序】WXSS 模板样式
【微信小程序】WXSS 模板样式
2022-07-03 14:46:00 【热爱编程的小白白】
目录
WXSS 模板样式
1. 什么是 WXSS
2. WXSS 和 CSS 的关系

WXSS 模板样式 - rpx
2. rpx 的实现原理
3. rpx 与 px 之间的单位换算(了解)
设备 | rpx换算px (屏幕宽度/750) | px换算rpx (750/屏幕宽度) |
iPhone5 | 1rpx = 0.42px | 1px = 2.34rpx |
iPhone6 | 1rpx = 0.5px | 1px = 2rpx |
iPhone6 Plus | 1rpx = 0.552px | 1px = 1.81rpx |
WXSS 模板样式 - 样式导入
1. 什么是样式导入
2. @import 的语法格式

WXSS 模板样式 - 全局样式和局部样式
1. 全局样式

/**app.wxss**/
.container {
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
padding: 200rpx 0;
box-sizing: border-box;
}
2. 局部样式

边栏推荐
- Zzuli:1058 solving inequalities
- 【北大青鸟昌平校区】互联网行业中,哪些岗位越老越吃香?
- [ue4] geometry drawing pipeline
- C language to realize mine sweeping
- [combinatorics] permutation and combination (set combination, one-to-one correspondence model analysis example)
- 分布式事务(Seata) 四大模式详解
- Find books ()
- Use of form text box (I) select text
- Dllexport and dllimport
- Adobe Premiere Pro 15.4 has been released. It natively supports Apple M1 and adds the function of speech to text
猜你喜欢
NPM install is stuck with various strange errors of node NPY
Pytorch深度学习和目标检测实战笔记
puzzle(016.3)千丝万缕
Puzzle (016.3) is inextricably linked
US stock listing of polar: how can the delivery of 55000 units support the valuation of more than 20billion US dollars
Tonybot Humanoïde Robot Infrared Remote play 0630
X86 assembly language - Notes from real mode to protected mode
洛谷P5018 [NOIP2018 普及组] 对称二叉树 题解
Dllexport and dllimport
天谋科技 Timecho 完成近亿元人民币天使轮融资,打造工业物联网原生时序数据库
随机推荐
远程服务器后台挂起 nohup
Talking about part of data storage in C language
Simulation of LS -al command in C language
创业团队如何落地敏捷测试,提升质量效能?丨声网开发者创业讲堂 Vol.03
分布式事务(Seata) 四大模式详解
556. The next larger element III: simple construction simulation questions
Zzuli:1054 monkeys eat peaches
Mongodb index
Optical cat super account password and broadband account password acquisition
复合类型(自定义类型)
洛谷P5194 [USACO05DEC]Scales S 题解
Luogu p4047 [jsoi2010] tribal division solution
Output student grades
tonybot 人形机器人 首次开机 0630
Dllexport et dllimport
Zzuli:1042 sum of sequence 3
retrofit
Several sentences extracted from the book "leather bag"
Tensor 省略号(三个点)切片
洛谷P5536 【XR-3】核心城市 题解