Blogger Information
Blog 19
fans 0
comment 0
visits 5762
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
flex容器的项目属性
vbokok
Original
279 people have browsed it
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>Document</title>
  8. </head>
  9. <body>
  10. <div class="container">
  11. <div class="item">item1</div>
  12. <div class="item">item2</div>
  13. <div class="item">item3</div>
  14. </div>
  15. <style>
  16. .container {
  17. display: flex;
  18. width: 450px;
  19. height: 50px;
  20. /* flex-direction: row;
  21. flex-wrap: nowrap;
  22. flex-flow: row wrap;
  23. place-content: start;
  24. place-content: end;
  25. place-content: center;
  26. place-items: stretch;
  27. place-items: start;
  28. place-items: end;
  29. place-content: space-between;
  30. place-content: space-around;
  31. place-content: space-evenly; */
  32. }
  33. .container > .item {
  34. background-color: aqua;
  35. /* height: 50px; */
  36. width: 170px;
  37. flex: 0 1 auto;
  38. flex: initial;
  39. flex: 1 1 auto;
  40. flex: auto;
  41. flex: 0 0 auto;
  42. flex: none;
  43. }
  44. .container .item:first-child,.container .item:last-child {
  45. background-color: darkgoldenrod;
  46. place-self: start;
  47. }
  48. </style>
  49. </body>
  50. </html>
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