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>

运行结果:

相关推荐
子兮曰2 小时前
async/await高级模式:async迭代器、错误边界与并发控制
前端·javascript·github
恋猫de小郭2 小时前
2026 Flutter VS React Native ,同时在 AI 时代 VS Native 开发,你没见过的版本
android·前端·flutter
GIS之路4 小时前
ArcGIS Pro 中的 Notebooks 入门
前端
IT_陈寒5 小时前
React状态管理终极对决:Redux vs Context API谁更胜一筹?
前端·人工智能·后端
Kagol6 小时前
TinyVue 支持 Skills 啦!现在你可以让 AI 使用 TinyVue 组件搭建项目
前端·agent·ai编程
柳杉6 小时前
从零打造 AI 全球趋势监测大屏
前端·javascript·aigc
simple_lau6 小时前
Cursor配置MasterGo MCP:一键读取设计稿生成高还原度前端代码
前端·javascript·vue.js
睡不着先生7 小时前
如何设计一个真正可扩展的表单生成器?
前端·javascript·vue.js
天蓝色的鱼鱼7 小时前
模块化与组件化:90%的前端开发者都没搞懂的本质区别
前端·架构·代码规范
明君879977 小时前
Flutter 如何给图片添加多行文字水印
前端·flutter