flex布局实践
1.右侧固定,左侧自适应布局
.father { display:flex; } .left { flex:1; } .right { width:300px; }
2.左边靠左,右边靠右进行排列
.father { display: flex; justify-content:space-between; }
posted on 2018-12-11 15:58 Diamond_xx 阅读(111) 评论(0) 收藏 举报
1.右侧固定,左侧自适应布局
.father { display:flex; } .left { flex:1; } .right { width:300px; }
2.左边靠左,右边靠右进行排列
.father { display: flex; justify-content:space-between; }
posted on 2018-12-11 15:58 Diamond_xx 阅读(111) 评论(0) 收藏 举报