web前端第八次作业---制作音乐榜单

制作音乐榜单

代码:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box_big{
            width: 1200px;
            height: 400px;
            border: 0px solid red;
            width: auto;
        }

        .box_small{
            width: 150px;
            height: 150px;
            box-shadow: -10px 10px 10px rgb(37, 36, 36);
           
            
        }

        ol,ul{
            list-style: none;/*  list-style: none 去掉ol(有序列表)ul(无序列表)前面的点*/
        }


        .box{
            width: 240px;
            height: 150px;
            border: 0px solid red;
            margin: auto;
            padding: 25px;
            background-color: rgba(230, 230, 239, 0.973);
            
            
        }

        .box1{
            width: 288px;
            height: 35px;
            border: 0px solid rgb(9, 240, 82);
            margin: auto; 
            background-color: rgb(210, 211, 214);
        }

        .box2{
            width: 288px;
            height: 35px;
            border: 0px solid rgb(51, 9, 240);
            margin: auto; 
            background-color: rgba(230, 230, 239, 0.973);
        }

        

        .box3{
            width: 85px;
            height: 45px;
            border: 0px solid red;
           

        }

        .bsb{
            width: 85px;
            height: 100px;
            border: 0px solid green;
            float: right;/*右浮动*/
            margin:0px 0px 0px 3.5px ;
        }
        .color{
            color: brown;
        }


    </style>
</head>
<body>
    <div class="box_big">
        <div class="box">
           <img class="box_small" src="https://p3.music.126.net/DrRIg6CrgDfVLEph9SNh7w==/18696095720518497.jpg">
           <div class="bsb"><p></p><strong>飙升榜</strong><img class="box3" src="/img/微信截图_20250114014228.png"></div>
           
        </div>
        
        <div class="box1">&nbsp;<strong class="color">1</strong>&nbsp;不重逢</div>
        <div class="box2">&nbsp;<strong class="color">2</strong>&nbsp;温暖的房子</div>
        <div class="box1">&nbsp;<strong class="color">3</strong>&nbsp;永不熄灭的火焰</div>
        <div class="box2">&nbsp;4&nbsp;怪诞心理学</div>
        <div class="box1">&nbsp;5&nbsp;不重逢</div>
        <div class="box2">&nbsp;6&nbsp;不重逢</div>
        <div class="box1">&nbsp;7&nbsp;不重逢</div>
        <div class="box2">&nbsp;8&nbsp;不重逢</div>
        <div class="box1">&nbsp;9&nbsp;不重逢</div>
        
    </div>
    
</body>
</html>

运行结果:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值