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

边栏推荐
- Use of form text box (I) select text
- Some concepts about agile
- My QT learning path -- how qdatetimeedit is empty
- Happy capital new dual currency fund nearly 4billion yuan completed its first account closing
- retrofit
- 556. The next larger element III
- Protobuf and grpc
- 2021-10-16 initial programming
- On MEM series functions of C language
- Dllexport and dllimport
猜你喜欢

pyQt界面制作(登录+跳转页面)

Use of form text box (I) select text

Sword finger offer 28 Symmetric binary tree

Showmebug entered Tencent conference, opening the era of professional technical interview

Qt—绘制其他东西

Pyqt interface production (login + jump page)

The picture quality has been improved! LR enhancement details_ Lightroom turns on AI photo detail enhancement: picture clarity increases by 30%
![Luogu p5018 [noip2018 popularization group] symmetric binary tree problem solution](/img/89/da1a3a38e02671628f385de0f30369.png)
Luogu p5018 [noip2018 popularization group] symmetric binary tree problem solution

Paper sharing: generating playful palettes from images
![洛谷P4047 [JSOI2010]部落划分 题解](/img/7f/3fab3e94abef3da1f5652db35361df.png)
洛谷P4047 [JSOI2010]部落划分 题解
随机推荐
Bucket sorting in C language
[opengl] geometry shader
Zzuli:1041 sum of sequence 2
Tonybot humanoid robot starts for the first time 0630
Amazon, express, lazada, shopee, eBay, wish, Wal Mart, Alibaba international, meikeduo and other cross-border e-commerce platforms evaluate how Ziyang account can seize traffic by using products in th
洛谷P3065 [USACO12DEC]First! G 题解
链表有环,快慢指针走3步可以吗
tonybot 人形机器人 红外遥控玩法 0630
洛谷P5018 [NOIP2018 普及组] 对称二叉树 题解
Common commands for getting started with mongodb database
Zzuli:1057 prime number determination
Zzuli:1049 square sum and cubic sum
Adc128s022 ADC Verilog design and Implementation
ShowMeBug入驻腾讯会议,开启专业级技术面试时代
How to color ordinary landscape photos, PS tutorial
Zzuli:1044 failure rate
远程服务器后台挂起 nohup
US stock listing of polar: how can the delivery of 55000 units support the valuation of more than 20billion US dollars
从书本《皮囊》摘录的几个句子
表单文本框的使用(一) 选择文本