根元素 html
position: fixed | absolute;
float: left | right;
overflow: hidden | auto | scroll;
display: flex | table-cell | inline-block;
overflow: hidden
.container { overflow: hidden }
overflow: hidden
.clearfix::after {
content: '';
display: block;
height: 0;
clear: both;
}
媒体查询的书写顺序
如果从小到大判断,那么也从小到大书写
如果从大到小判断,那么也从大到小书写
fontSize = clientWidth / 10
算出每份 rem 的 px 大小设计稿px / (设计稿手机宽度 / 10)
算出多少份px2rem-loader
fontSize = 100px
(设计稿px / 100)rem
120 * 100vw / 750px
= 120 * 100 / 750
= 16vw
)padding**: 0 100px 0 200px
在 .container
上margin-right: -100px
在 .right
上