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

制作音乐榜单

代码:

html 复制代码
<!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>

运行结果:

相关推荐
小彤花园14 分钟前
和 AI 结对写网站:从 JSON 到一整个工具集
前端·人工智能·程序员
RD_daoyi34 分钟前
Google核心算法不再通知!全年持续滚动更新
大数据·服务器·前端·网络·搜索引擎·.net
এ慕ོ冬℘゜38 分钟前
纯 CSS 实现自定义 Switch 开关(商品上下架滑块)
前端·css
再吃一根胡萝卜39 分钟前
dompdf.js 分页功能完整实现指南
前端
wordbaby42 分钟前
App 热更新(OTA)原理深解 —— 以 React Native 为例
前端·react native
再吃一根胡萝卜1 小时前
Vue + dompdf.js 实现简历分页导出的完整踩坑记录
前端
其美杰布-富贵-李1 小时前
第 6 篇:相机与 OrbitControls
前端·javascript·three.js
lichenyang4531 小时前
从图片生成任务到用户隔离:AIGC Creative Studio 后端与 PostgreSQL 建模实践
前端·后端
小黑技术栈2 小时前
关于前端的一些话
前端
无人生还2 小时前
从 Vue3 到 React · 快速上手系列第 11 篇:状态管理
前端·vue.js·react.js