当前位置:网站首页>Beginner mobile terminal
Beginner mobile terminal
2022-07-28 05:51:00 【Still love me】
Today, we begin to learn from mobile terminals , Online classes at home due to the epidemic .
One 、 First, let's take a look at one I learned today css3 style
column-count : 3; Number of columns
column-width : 100px; Column width
column-gap : 2em; Column spacing
column-rule : 2px #f00 outset Column style
You can use these attributes to define your paragraph column display .
Two ·、 Media query
@media screen and (max-width: 600px){
.list{
width: 100%;
height: 100px;
}
}
This attribute is mainly used to set the content displayed under different screen sizes
If the maximum width is specified , Just write a wide range , Write a small range again , This avoids being covered ; If it is a small range , Define from small to large .
3、 ... and 、meta Metadata tags
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
width: control viewport Size , A value that can be specified , If 600, Or special values , Such as device- width Is the width of the device ( The unit is scaled to 100% At the time of the CSS The pixel );
height: and width Corresponding , Specifies the height ;
initial-scale: Initial scaling , That is when the page first appears load Scale when theta ;
maximum-scale: The maximum scale to which the user is allowed to scale ;
minimum-scale: The minimum scale that allows the user to scale to ;
user-scalable: Whether the user can manually scale , The value is "yes" or "no".
Four 、em And rem The difference between :
em: Multiple of a text Inherit the font size of the parent element
rem: Multiple of a text Inherit the font size of the root directory
Today I learned the mobile interface , Made a small case , summary : The mobile terminal needs to adapt to different screen sizes , So you need to test the screen zoom , And the mobile terminal must define meta label , And we need to introduce media query to adapt to the screen , And the unit of length should be rem.
边栏推荐
- Sorting out problems related to ArcMap join table
- Time setting in curd component
- 使用sourcetree推送仓库时 Failed to connect to www.google.com port 80: Timed out
- Mysql database index (InnoDB engine)
- 抖音-视频步骤
- 树莓派WIFI一键连接配置
- Oracle create table, delete table, modify table (add field, modify field, delete field) statement summary
- ES6--->箭头函数、类、模块化
- Delete specific elements in order table OJ
- 三大缓存技术--localStorage、sessionStorage、Cookie
猜你喜欢
随机推荐
标准C语言总结1
flex弹性盒子项目属性
Simpledateformat thread unsafe and datetimeformatter thread safe
Cad-gis data conversion
js-简单的发布订阅类
DOM--事件链、事件冒泡和捕获、事件代理
C语言回顾(可变参数篇)
DOM窗口相关数据、操作 & BOM操作
A file upload tool website written by individuals
【博学谷学习记录】超强总结,用心分享 | 集合
JS数组的方法大全
书籍-乌合之众
结果填空 啤酒和饮料
ES6----解构赋值
Arcgis Engine安装的若干问题
Time setting in curd component
es6新增--->对象(Object)
结果填空 购物单(教你用Excel解决)
GIS领域竞赛整理(不完全统计)
Child parent thread interaction









