当前位置:网站首页>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.
边栏推荐
猜你喜欢
随机推荐
对象内多个数组的对应下标相加
书籍-投资理念和策略
书籍-穷查理宝典
基于Highcharts平台的桑基图(Sankey diagram)绘制
树莓派WIFI一键连接配置
GIS领域竞赛整理(不完全统计)
书籍-清醒思考的艺术
基于php心理健康服务系统获取(php毕业设计)
Example of MySQL processing legacy data
结果填空 国庆有几天是星期日(纯Excel解决)
ArcGIS之Model Builder
Canvas绘图1
标准C语言总结2
ArcGIS地图制作的注记、格网添加
链表中关于快慢指针的oj题
js中==和===区别
Distance toolbar in ArcMap (distance)
树莓派蓝牙调试过程
ArcGIS Engine开发资源
使用sourcetree推送仓库时 Failed to connect to www.google.com port 80: Timed out








