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