将白边之外的背景变成白色,所形成的图形为最终需求。
可能我的代码有问题求帮助
试试这个代码
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>音乐排行榜</title>
<style>
*{
margin: 0;
padding: 0;
}
.bg{
width: 600px;
height: 550px;
border-radius: 50%;
background-image: repeating-radial-gradient(circle at center,#333,#000 1%);
margin: 50px auto;
padding: 40px;
border: 10px solid #ccc;
padding-top: 50px;
}
.sheet{
width: 372px;
height: 530px;
background-color: #fff;
margin: 0 auto;
border-radius: 30px;
overflow: hidden;
}
.sheet p{
width: 372px;
background-color: #504d58 ;
height: 55px;
margin-top: 2px;
color: #d6d6d6;
text-align: center;
font-size: 18px;
line-height: 55px;
font-family: "微软雅黑";
}
.sheet .tp{
width: 372px;
height: 247px;
background-color: #fff;
background-image: url(img/yinyue.jpg),url(img/wenzi.jpg);
background-position: 87px 16px,99px 192px;
background-repeat: no-repeat;
border-radius: 30px 30px 0 0;
}
.sheet .yj{
border-radius: 0 0 30px 30px;
}
</style>
</head>
<body>
<div class="bg">
<div class="sheet">
<p class="tp"></p>
<p >vnessa-constance</p>
<p >dogffedrd-seeirtit</p>
<p >dsieirif-constance</p>
<p >wytuu-qeyounted</p>
<p class="yj">qurested-conoted</p>
</div>
</div>
</body>
</html>