当前位置:网站首页>移动端响应式适配的方法
移动端响应式适配的方法
2022-08-04 02:36:00 【大鸡腿最好吃】
个人理解,移动端适配的方法就算设置他的宽度
1,对于简单一点的页面,一般高度直接设置成固定值,宽度一般撑满整个屏幕
2,可以使用%和vh,vw作为单位,也可以使用flex来进行布局
3,使用媒体查询配合rem来进行适配,1rem等于1比例根元素的font-size的px
4,根页面的根元素设置:min-height:calc(100vh),然后其子元素的页面的高度可以直接设置固定值,宽度使用用百分比,也可以使用flex来布局
边栏推荐
- Example: 036 is a prime number
- STM8S105k4t6c---------------Light up LED
- 2022.8.3-----leetcode.899
- unsafe.Pointer, pointer, reference in golang
- mpf5_定价Bond_yield curve_Spot coupon_duration_有效利率_连续复利_远期_Vasicek短期_CIR模型Derivatives_Tridiagonal_ppf
- 安全至上:落地DevSecOps最佳实践你不得不知道的工具
- QNX Hypervisor 2.2 user manual] 10.1 gm vdev options
- ssh服务详解
- In the season of going overseas, the localization of Internet tips for going overseas
- 织梦内核电动伸缩门卷闸门门业公司网站模板 带手机版【站长亲测】
猜你喜欢

一文看懂推荐系统:召回04:离散特征处理,one-hot编码和embedding特征嵌入

Countdown to 2 days, the "New Infrastructure of Cultural Digital Strategy and Ecological Construction of Cultural Art Chain" will kick off soon

Continuing to invest in product research and development, Dingdong Maicai wins in supply chain investment

LeetCode:899. 有序队列【思维题】

STM8S105K4T6------串口发送和接收

There are too many systems, how to realize multi-account interworking?

什么是SVN(Subversion)?

5. Scrapy middleware & distributed crawler

【云原生】DevOps(六):Jenkins流水线

Example 039: Inserting elements into an ordered list
随机推荐
Example 039: Inserting elements into an ordered list
esp8266-01s刷固件步骤
系统太多,多账号互通如何实现?
Kubernetes:(九)coredns(浪不动了)
简单排序(暑假每日一题 14)
倒计时2天,“文化数字化战略新型基础设施暨文化艺术链生态建设发布会”启幕在即
How many ways do you know about communication between multiple threads?
[QNX Hypervisor 2.2 User Manual] 10.3 vdev gic
验证码业务逻辑漏洞
Zabbix set up email alert + enterprise WeChat alert
STM8S project creation (STVD creation) --- use COSMIC to create a C language project
TOML配置文件格式,YAML最有力的竞争者
董明珠直播时冷脸离场,员工频犯低级错误,自家产品没人能弄明白
Returns the maximum number of palindromes in a string
各位大佬好,麻烦问一下flink cdc oracle写入doris的时候,发现cpu异常,一下下跑
MySQL高级-读写分离-分库分表
异步编程解决方案 Generator生成器函数、iterator迭代器、async/await、Promise
关联接口测试
FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed
SAP SD module foreground operation