这里背景图片命名格式为:纽扣1.png,纽扣2.png
最后有图片示例
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
*{
margin: 0px;
padding: 0px;
list-style: none;
}
#box{
width: 90%;
height: 700px;
background: dimgray;
margin: 13px auto;
position: relative;
}
#backgray{
position: absolute;
width: 99%;
height: 90%;
background: gainsboro;
top: 1%;
left: 0.5%;
}
.tl,.tr,.bl,.br{
border: 1px solid dimgray;
position: absolute;
width: 5%;
height: 10%;
}
.tl{
top: 1.8%;
left: 0.8%;
border-bottom: none;
border-right: none;
}
.tr{
top: 1.8%;
left: 94.2%;
border-left: none;
border-bottom: none;
}
.bl{
top: 88%;
left: 0.8%;
border-right: none;
border-top: none;
}
.br{
top: 88%;
left: 94.2%;
border-top: none;
border-left: none;
}
#ul1,#ul2{
width: 80%;
height: 35%;
/* border: #000000 1px solid; */
position: absolute;
z-index: 1;
}
#ul1{
top: 15%;
left: 10%;
}
#ul2{
margin-top: 10px;
top: 49%;
left: 10%;
}
li{
position: absolute;
float: right;
display: inline-block;
border-radius: 50%;
background-size: 108% 108%;
}
#hidden{
width: 800px;
height: 600px;
position: absolute;
top: -300px;
left: 150px;
background-size: 100% 100%;
background-repeat: no-repeat;
opacity: 0;
display: none;
}
#hiddentop{
width: 1000px;
height: 800px;
background-repeat: no-repeat;
background-size: 100%;
position: absolute;
top: -320px;
left: -250px;
transform: translateY(-700px);
}
#hiddenmin{
width: 1000px;
height: 800px;
background-repeat: no-repeat;
background-size: 100%;
position: absolute;
top: -310px;
left: -550px;
transform: scale(0,0);
}
#hiddenlast{
width: 400px;
height: 250px;
background-repeat: no-repeat;
background-size: 100%;
position: absolute;
}
#hiddenbox{
width: 400px;
height: 250px;
position: absolute;
t