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

边栏推荐
- [ue4] geometry drawing pipeline
- 天谋科技 Timecho 完成近亿元人民币天使轮融资,打造工业物联网原生时序数据库
- Zzuli:1044 failure rate
- Zzuli:1042 sum of sequence 3
- [ue4] HISM large scale vegetation rendering solution
- Analysis of gene family characteristics - chromosome location analysis
- Yolov5进阶之七目标追踪最新环境搭建(二)
- dllexport和dllimport
- Zzuli: cumulative sum of 1050 factorials
- 基因家族特征分析 - 染色体定位分析
猜你喜欢
![[qingniaochangping campus of Peking University] in the Internet industry, which positions are more popular as they get older?](/img/f6/fe61c84f289f0e74a45946dac687a6.jpg)
[qingniaochangping campus of Peking University] in the Internet industry, which positions are more popular as they get older?

复合类型(自定义类型)

Dllexport et dllimport

Adobe Premiere Pro 15.4 has been released. It natively supports Apple M1 and adds the function of speech to text
![[ue4] HISM large scale vegetation rendering solution](/img/a2/2ff2462207e3c3e8364a092765040c.jpg)
[ue4] HISM large scale vegetation rendering solution

How to query the baby category of tmall on Taobao

论文分享:Generating Playful Palettes from Images

Frequently asked questions: PHP LDAP_ add(): Add: Undefined attribute type in

C language to realize mine sweeping

Puzzle (016.4) domino effect
随机推荐
Zzuli:1047 logarithmic table
Luogu p5194 [usaco05dec]scales s solution
牛客 BM83 字符串變形(大小寫轉換,字符串反轉,字符串替換)
Container of symfony
Analysis of gene family characteristics - chromosome location analysis
Luogu p5018 [noip2018 popularization group] symmetric binary tree problem solution
Zzuli: sum of 1051 square roots
Zzuli:1043 max
556. 下一个更大元素 III : 简单构造模拟题
Adobe Premiere Pro 15.4 has been released. It natively supports Apple M1 and adds the function of speech to text
Happy capital new dual currency fund nearly 4billion yuan completed its first account closing
Find books ()
Zzuli:1046 product of odd numbers
My QT learning path -- how qdatetimeedit is empty
Yolov5进阶之九 目标追踪实例1
Fundamentals of PHP deserialization
Tonybot humanoid robot checks the port and corresponds to port 0701
To improve efficiency or increase costs, how should developers understand pair programming?
retrofit
Address book sorting