62 lines
1014 B
SCSS
62 lines
1014 B
SCSS
@function px2rem($px, $rem:75) {
|
|
@return $px / $rem+rem;
|
|
}
|
|
|
|
html {}
|
|
|
|
body {
|
|
width: 100%;
|
|
height: px2rem(1624, );
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.back {
|
|
position: fixed;
|
|
top: px2rem(70, );
|
|
left: px2rem(34, );
|
|
z-index: 9999;
|
|
width: px2rem(62, );
|
|
height: px2rem(62, );
|
|
|
|
img {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
p {
|
|
color: #fff;
|
|
font-size: px2rem(32, );
|
|
position: absolute;
|
|
width: 9rem;
|
|
left: 0;
|
|
top: 0;
|
|
height: 100%;
|
|
text-align: center;
|
|
line-height: px2rem(62, );
|
|
}
|
|
}
|
|
|
|
.box {
|
|
width: px2rem(750, );
|
|
height: px2rem(2257, );
|
|
background: url(../images/bg.png) no-repeat;
|
|
background-size: 100% 100%;
|
|
position: relative;
|
|
margin: 0 auto 0;
|
|
|
|
.user {
|
|
width: 8.4rem;
|
|
height: 2rem;
|
|
position: absolute;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
.user1 {
|
|
top: 22.7rem;
|
|
}
|
|
|
|
.user2 {
|
|
top: 24.6rem;
|
|
}
|
|
} |