Blogger Information
Blog 20
fans 1
comment 2
visits 16803
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
补0910作业: 使用掌握的flex技术仿写手机页面
月迎下弦的博客
Original
758 people have browsed it

php中文网剩余页面:

1.jpg

2.jpg

3.jpg

4.jpg


仿写文书帮手机页面首页

TIM截图20190917130713.png

关键部分解释

11.jpg

12.jpg

13.jpg

14.jpg



总结:flex对移动端页面的仿写,比起使用浮动布局要简单很多,本次作业里面使用最多的flex代码为

            display: flex; 采用flex布局

            flex: 1;均分剩余空间

            justify-content: flex-start; 水平轴从左对齐

            justify-content: flex-end;水平轴从右对齐

            justify-content: space-around; 项目两侧间隔相等,即项目之间间隔是项目到两端的二倍

            justify-content: space-between;两端对齐: 项目之间间隔相等

            justify-content: space-evenly;均匀排列每个元素 每个元素之间的间隔相等

            align-items: center;垂直方向的居中

最后使用表格总结flex所有的属性

未标11.jpg





Correction status:qualified

Teacher's comments:作业写得不错, 特别是手写体的笔记
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments