Blogger Information
Blog 12
fans 0
comment 0
visits 5779
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
1026作业
PHP是世界上最好的语言
Original
297 people have browsed it

作业内容:实例演示flex容器与项目常用属性,并图示常用术语

flex布局

html

  1. <div class="content">
  2. <div class="left">left</div>
  3. <div class="middle">content</div>
  4. <div class="right">right</div>
  5. </div>

css
容器

  1. content {
  2. width: 90vw;
  3. height: 500px;
  4. margin: 0 auto;
  5. color: white;
  6. display: flex;
  7. flex-flow: row nowrap;
  8. place-content: center;
  9. }

项目

  1. .left, .right {
  2. flex: 1;
  3. height: 500px;
  4. background-color: red;
  5. }
  6. .middle {
  7. flex: 3;
  8. height: 500px;
  9. background-color: blue;
  10. }

效果

常用术语图示

Correcting teacher:PHPzPHPz

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
Author's latest blog post