CSS
语言:
CSSSCSS
确定
body {
background-color: #1a1a1a;
height: 100%;
}
.pos {
color: white;
}
.container {
position: fixed;
left: 0;
top: 0;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
width: 100%;
height: 100%;
}
.wrapper {
position: relative;
width: 75%;
background: #fff;
height: 30%;
border-radius: 10px;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
padding: 20px;
}
.wrapper h1 {
text-align: center;
font-family: sans-serif;
padding: 1%;
font-size: 1.5rem;
position: relative;
top: -10px;
}
.wrapper section {
/*border: 1px solid red;*/
-webkit-transition: all 0.1s ease;
transition: all 0.1s ease;
height: 80px;
width: 80px;
position: absolute;
right: -40px;
top: -40px;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
}
.wrapper section span {
color: white;
background: black;
font-family: sans-serif;
border-radius: 50%;
height: 30px;
width: 30px;
text-align: center;
line-height: 33px;
border: 4px solid white;
box-shadow: 2px 0px 13px 0px rgba(0, 0, 0, 0.5);
}