6HaHa
2017-01-25 13:02
#page2 {
display: block;
}
#page2 > .bg {
background: url("H:/小小移动端/image/p2_bg.jpg") no-repeat center center;
background-size: 100%;
}
#page2 > .p2_circle {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: auto;
border-radius: 50%;
background: url("H:/小小移动端/image/p2_circle_outer.png") no-repeat center center;
background-size: 100%;
width: 59.375vw;
height: 59.375vw;
}
#page2 > .p2_circle:before {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: auto;
border-radius: 50%;
content: "";
background: url("../image/p2_circle_middle.png") no-repeat center center;
background-size: 100%;
width: 45.625vw;
height: 45.625vw;
}
#page2 > .p2_circle:after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: auto;
border-radius: 50%;
content: "";
background: url("../image/p2_circle_inner.png") no-repeat center center;
background-size: 100%;
width: 39.937vw;
height: 39.937vw;
}
#page2 > .p2_2017 {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: auto;
background: url("H:/小小移动端/image/p2_2017") no-repeat center center;
background-size: 100%;
width: 30vw;
height: 8vh;
}
图片没有写后缀 .png
朋友你的2017图片能不能发我一份
先确定一下图片有没有引入进去,再试试调大宽和高能不能显示出来
HTML5+CSS3实现春节贺卡
110057 学习 · 450 问题
相似问题