09 2021 档案

摘要:定义垂直居中一个浮动元素//父盒子有宽高: .parent { width: 150px; height: 150px; background-color: teal; position: relative; /*注意父盒子要相对定位*/ } .child { width: 50px; height: 50px; back 阅读全文
posted @ 2021-09-02 13:58 刘浦源 阅读(29) 评论(0) 推荐(0)