摘要: 1.使用flex弹性布局 父元素设置display:flex;justify-content: center;align-items: center; 2.使用tranform + position 将父元素设置为 positon:fixed,然后上下左右都为 0;使其填满整个屏幕; 子元素也设置为 阅读全文
posted @ 2020-05-08 17:02 逍遥玩儿 阅读(120) 评论(0) 推荐(0) 编辑