当前位置:网站首页>【微信小程序】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. 局部样式

边栏推荐
- Mongodb index
- [qingniaochangping campus of Peking University] in the Internet industry, which positions are more popular as they get older?
- Zzuli:1055 rabbit reproduction
- Pyqt interface production (login + jump page)
- Adobe Premiere Pro 15.4 has been released. It natively supports Apple M1 and adds the function of speech to text
- ShowMeBug入驻腾讯会议,开启专业级技术面试时代
- tonybot 人形机器人 红外遥控玩法 0630
- Rasterization: a practical implementation (2)
- Happy capital new dual currency fund nearly 4billion yuan completed its first account closing
- 论文分享:Generating Playful Palettes from Images
猜你喜欢

Tonybot humanoid robot starts for the first time 0630

Puzzle (016.4) domino effect

tonybot 人形机器人 定距移动 代码编写玩法

Zhonggan micro sprint technology innovation board: annual revenue of 240million, net loss of 17.82 million, proposed to raise 600million
![洛谷P5018 [NOIP2018 普及组] 对称二叉树 题解](/img/89/da1a3a38e02671628f385de0f30369.png)
洛谷P5018 [NOIP2018 普及组] 对称二叉树 题解

Protobuf and grpc

远程服务器后台挂起 nohup

dllexport和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
随机推荐
2021-10-16 initial programming
Some concepts about agile
tonybot 人形機器人 紅外遙控玩法 0630
Déformation de la chaîne bm83 de niuke (conversion de cas, inversion de chaîne, remplacement de chaîne)
Rasterization: a practical implementation (2)
556. The next larger element III: simple construction simulation questions
puzzle(016.3)千丝万缕
Luogu p3065 [usaco12dec]first! G problem solution
NOI OPENJUDGE 1.5(23)
提高效率 Or 增加成本,开发人员应如何理解结对编程?
Zzuli:1045 numerical statistics
Dllexport et dllimport
NOI OPENJUDGE 1.4(15)
556. The next larger element III
Introduction to opengl4.0 tutorial computing shaders
China PETG market forecast and Strategic Research Report (2022 Edition)
Bibit pharmaceutical rushed to the scientific innovation board: annual revenue of 970000, loss of 137million, proposed to raise 2billion
tonybot 人形机器人 红外遥控玩法 0630
Bucket sorting in C language
Time conversion ()