weixin_59055369 2022-10-27 18:07 采纳率: 0%
浏览 356

HTML5➕CSS3 制作音乐排行榜

将白边之外的背景变成白色,所形成的图形为最终需求。
可能我的代码有问题求帮助

img

img

  • 写回答

2条回答 默认 最新

  • 馥滢( '▿ ' ) 2022-10-27 18:54
    关注

    试试这个代码

    
    <!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>
    
    评论

报告相同问题?

问题事件

  • 创建了问题 10月27日

悬赏问题

  • ¥30 模拟电路 logisim
  • ¥15 PVE8.2.7无法成功使用a5000的vGPU,什么原因
  • ¥15 is not in the mmseg::model registry。报错,模型注册表找不到自定义模块。
  • ¥15 安装quartus II18.1时弹出此error,怎么解决?
  • ¥15 keil官网下载psn序列号在哪
  • ¥15 想用adb命令做一个通话软件,播放录音
  • ¥30 Pytorch深度学习服务器跑不通问题解决?
  • ¥15 部分客户订单定位有误的问题
  • ¥15 如何在maya程序中利用python编写领子和褶裥的模型的方法
  • ¥15 Bug traq 数据包 大概什么价