当屏幕的大小:
大于1920的时候内容区宽度为1920
小于1920的时候内容区越小宽度越小
也就是:
1440px/1920px = 7.5vw
@width: 1440;
@screen: 1920;
.pxToVW (@px, @max, @attr: width) {
@vw: (@px / @max) * 100;
@{attr}:~"@{vw}vw";
}
.content {
height: 100%;
width:~"@{width}px";
margin: 0 auto;
padding-bottom: 18px;
}
@media screen and (max-width: ~"@{screen}px") {
.first-install .content {
.pxToVW(@width, @screen)
}
}