Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .flex{
- display: -webkit-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- }
- .flex-align{
- /* 子元素垂直居中 */
- -webkit-box-align: center;
- -moz-align-items: center;
- -webkit-align-items: center;
- align-items: center;
- }
- .flex-jusity{
- /* 子元素水平居中 */
- -webkit-box-pack: center;
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center;
- }
- .flex-item{
- -webkit-box-flex: 1;
- -webkit-flex: 1;
- -ms-flex: 1;
- flex: 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement