Blogger Information
Blog 29
fans 0
comment 0
visits 19623
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
栅格布局简单理解
牡丹飞
Original
823 people have browsed it

1 效果

2 代码

  1. .container {
  2. width: 100wv;
  3. height: 100hv;
  4. display: grid;
  5. place-content: center;
  6. }
  7. .container > .row {
  8. display: grid;
  9. grid-template-columns: repeat(12, 1fr);
  10. gap: 1em;
  11. }
  12. .container > .row > .center {
  13. text-align: center;
  14. }
  15. .container > .row > .col-12 {
  16. grid-column: span 12;
  17. }
  18. .container > .row > .col-11 {
  19. grid-column: span 11;
  20. }

3 总结

感谢老师教导!
主要理解好repeat fr span就可以了。
尝试用了文本对齐类。

Correcting teacher:天蓬老师天蓬老师

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