rxfxiaoxiao / blog-comments

commnets
0 stars 0 forks source link

flex布局 | Hexo #11

Open rxfxiaoxiao opened 5 years ago

rxfxiaoxiao commented 5 years ago

https://rxfxiaoxiao.github.io/2019/05/27/flex-layout/

背景在网页开发当中,我们经常会面临这样一个场景:让一个块级元素在其父容器中垂直水平居中。如何实现这样一个功能呢?我们先来看看传统的解决方案: 方案1: 123456789101112131415161718192021222324252627 html: <div class="container"> <div class=&quot

rxfxiaoxiao commented 5 years ago

1