css部分
* {
margin: 0;
padding: 0;
}
.transform {
width: 500px;
min-height: 500px;
border: 1px solid;
margin: 50px auto;
position: relative;
}
.transform .pages {
height: 40px;
background-color: greenyellow;
text-align: center;
font-size: 18px;
line-height: 40px;
}
.transform .pic {
height: 500px;
}
.transform .pic img {
width: 100%;
height: 100%;
}
.transform .btn {
width: 500px;
height: 50px;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%)