当前位置:网站首页>移动端响应式适配的方法
移动端响应式适配的方法
2022-08-04 02:36:00 【大鸡腿最好吃】
个人理解,移动端适配的方法就算设置他的宽度
1,对于简单一点的页面,一般高度直接设置成固定值,宽度一般撑满整个屏幕
2,可以使用%和vh,vw作为单位,也可以使用flex来进行布局
3,使用媒体查询配合rem来进行适配,1rem等于1比例根元素的font-size的px
4,根页面的根元素设置:min-height:calc(100vh),然后其子元素的页面的高度可以直接设置固定值,宽度使用用百分比,也可以使用flex来布局
边栏推荐
猜你喜欢
随机推荐
Good bosses, please ask the flink CDC oracle to Doris, found that the CPU is unusual, a run down
SAP SD module foreground operation
Flask Framework Beginner-06-Add, Delete, Modify and Check the Database
小程序:扫码打开参数解析
What is the source of flinkcdc consuming mysql binlog data without sqltype=delete
Kubernetes:(十一)KubeSphere的介绍和安装(华丽的篇章)
Pine脚本 | 如何显示和排版绘图开关?
如何读取 resources 目录下的文件路径?
QNX Hypervisor 2.2 user manual] 10.1 gm vdev options
Flask Framework Beginner-05-Command Management Manager and Database Use
Development of Taurus. MVC WebAPI introductory tutorial 1: download environment configuration and operation framework (including series directory).
ant-design的Select组件采用自定义后缀图标(suffixIcon属性)时,点击该自定义图标没有反应,不会展示下拉菜单的问题
esp8266-01s刷固件步骤
pytorch应用于MNIST手写字体识别
Continuing to invest in product research and development, Dingdong Maicai wins in supply chain investment
实例039:有序列表插入元素
2022G1工业锅炉司炉考试练习题及模拟考试
Zabbix set up email alert + enterprise WeChat alert
How to read the resources files in the directory path?
多线程间的通信方式你知道几种?









