使用flex怎么实现元素的水平居中和垂直居中?
水平居中:
.box { display: flex; justify-content: center;}
垂直居中:
.box { display: flex; align-items: center;}
水平垂居中:
.box { display: flex; justify-content: center; align-items: center;}
justify-conten跟浮动
学到了哇哇
通过设置justify-content以及align-items属性来居中元素
东西呜呜呜呜呜呜呜呜呜呜
11111
除了flex还可以通过margin和transition 实现
请写出以下代码执行输出:(构造函数、静态块执行顺序)
北京有一条1公里长的街道,你认为一天能收多少钱的停车费?
cookies,sessionStorage 和 localStorage 的区别?
微信公众号中服务号和订阅号合二为一,你怎么看?
justify-conten跟浮动
学到了哇哇
通过设置justify-content以及align-items属性来居中元素
11111
除了flex还可以通过margin和transition 实现