摘要: css盒子模型是css的基础知识,很多时候面试的时候会问到,就了解一下 css盒子模型组成包括:content,padding,border,margin; css盒子模型分为两种:标准盒子模型和IE盒子模型; 标准盒子模型:content+padding+border+margin; IE盒子模型 阅读全文
posted @ 2020-06-13 11:54 自行車 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 行内元素:text-align: center; 块级元素:margin: 0 auto; 使用定位:position: relative; left: 50%; tranform: translateX(-50%); 使用flex: display: flex; justify-content: 阅读全文
posted @ 2020-06-13 11:30 自行車 阅读(125) 评论(0) 推荐(0) 编辑