- 博客(2)
- 收藏
- 关注
原创 前端——盒模型
盒模型分两种: IE盒模型 (width = content + padding + border ) W3C盒模型 (width = content ) 借助css3的 box-sizing 属性可切换盒模型: box-sizing: border-box; /*IE盒模型*/ box-sizing: content-box; /*W3C盒模型*/...
2018-08-08 13:54:59 324
原创 前端——CSS水平垂直居中的几种解决方案
水平垂直居中的几种解决方案 <div class="sup"> <div class="sub"></div> </div> 利用CSS3的弹性盒子:(父元素display:flex;子元素margin:auto;) .sup{ width:400px; height:400px; background-...
2018-08-08 13:31:30 206
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人