Blogger Information
Blog 5
fans 0
comment 0
visits 2758
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
12月23日作业 flex容器的六个属性与功能 -php线上培训班十期
Original
518 people have browsed it

初步了解flex容器的属性与功能

flex容器的六个属性与功能:
![](https://img.php.cn/upload/image/857/364/136/1577641071258844.jpg)

flex容器属性案例:
代码段:

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <mate charset="UTF-8">
  5. <title>
  6. flex术语
  7. </title>
  8. <style>
  9. .container {
  10. height : 300px;
  11. width : 50%;
  12. border : 1px dashed;
  13. box-sizing : border-box;
  14. background-color : red;
  15. }
  16. .item {
  17. width : 200px;
  18. height : 50px;
  19. border : 1px dashed;
  20. box-sizing : border-box;
  21. background-color : wheat;
  22. }
  23. .container {
  24. display : flex;
  25. }
  26. .container {
  27. flex-direction : row;
  28. flex-wrap : wrap;
  29. justify-content : flex-end;
  30. justify-content: space-around;
  31. align-items: flex-start;
  32. align-content: space-around;
  33. }
  34. </style>
  35. </head>
  36. <body>
  37. <div class="container">
  38. <span class="item">1</span>
  39. <span class="item">2</span>
  40. <span class="item">3</span>
  41. <span class="item">4</span>
  42. <span class="item">5</span>
  43. <span class="item">6</span>
  44. <span class="item">7</span>
  45. <span class="item">8</span>
  46. </div>
  47. </body>
  48. </html>

效果图:

12月20日作业分析:
单个知识点都已经掌握了,但是不能灵活运用,独立完成一个页面时不知如何下手,还需要多加练习才能彻底掌握基本的页面开发套路

Correcting teacher:天蓬老师天蓬老师

Correction status:qualified

Teacher's comments:这些基础知识 , 千万要重视, 有许多同学, 总认为能写出来就OK,上来就写页面,不看重基础知识 , 出了问题, 不知如何分析....
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