css设置html的fontsize
html {
font-size: 1/19.2vw // 0.052083333333333336vw;;
}
在页面的元素全都按照设计图px写rem
.container {
position: relative;
display: flex;
flex-wrap: nowrap;
width: calc(100% - 32rem);
height: calc(100% - 32rem);
margin: auto;
// padding: 0 16rem;
.lefWrap {
display: flex;
flex-direction: column;
justify-content: space-between;
width: 410rem;
height: 100%;
}
.centerWrap {
display: flex;
flex: 1;
flex-direction: column;
justify-content: space-between;
// position: relative;
// width: 54%;
max-width: calc(100% - 820rem);
height: 100%;
// margin: auto;
padding: 0 16rem;
/* .boerddd {
width: 13rem;
height: 13rem;
background: radial-gradient(rgba(97, 142, 255, 0.3) 25%, rgba(97, 142, 255, 0.6) 75%);
// background-color: rgba(97, 142, 255, 0.6);
border: solid 1rem rgba(97, 142, 255, 1);
transform: rotate(45deg);
} */
}
.rightWrap {
// padding-bottom: 14rem;
display: flex;
flex-direction: column;
justify-content: space-between;
width: 410rem;
height: 100%;
}
}