使用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 实现
多线程中sleep()和wait()方法的区别
一棵具有n个结点的二叉树,若它有m个叶子结点,则该二叉树中度为1的结点个数是多少?
B2C网站上促销价格出错了,如何做危机公关?
用一条线(可以是折线)分割多边形为面积相等的两部分
justify-conten跟浮动
学到了哇哇
通过设置justify-content以及align-items属性来居中元素
11111
除了flex还可以通过margin和transition 实现