当前位置: 首页 > article >正文

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{
            width: 970px;
            height: 3000px;
            border: 1px solid red;
            margin: auto;/*margin:auto 将box1自动居中*/
            
        }

        .box1{
            width: 200px;
            height: 260px;
            border: 0px solid red;
            box-shadow: 2px 2px 2px 2px  #999;/*制作阴影部分*/
            float: left;/* float: left 使标签向左聚集(浮动)*/
            margin: 20px 20px 20px 20px;/*根据 上 右 下 左 的顺序*/
            
        }

        .box2{
            width: 200px;
            height: 200px;
            border: 0px solid red;
        }

        .box1:hover .box3{ /*鼠标移动到box1区域时显示透明部分*/
            display: block;
             
        }

        .box5{
            border: 0px solid rgb(11, 11, 11);
            position: relative;/* 相对定位*/ 
        }

        .box3{
            width: 200px;
            height: 40px;
            border: 0px solid red;
            position: absolute;/* 绝对定位*/
            left: 0;
            bottom: 0;    
            background-color: rgba(0, 0, 0, 0.5);/* 透明色*/
            color: #dad7d7;
            line-height: 40px;
            display: none;/* 将透明框隐藏*/
            }

        .clear_float{
            clear: both;/* 清除浮动*/
        }
        
       
        
    </style><!-- &nbsp相当于一个空格 -->
</head>
<body>
    <div class="box">
        <div class="box1">
            <div class="box5">
                <img class="box2" src="https://p3.music.126.net/DrRIg6CrgDfVLEph9SNh7w==/18696095720518497.jpg">
                <div class="box3">&nbsp;&nbsp;&nbsp;播放量30000+</div> 
            </div>
            <p class="box4">1234567</p>
        </div>

        <div class="box1">
            <div class="box5">
                <img class="box2" src="https://p3.music.126.net/DrRIg6CrgDfVLEph9SNh7w==/18696095720518497.jpg">
                <div class="box3">&nbsp;&nbsp;&nbsp;播放量30000+</div> 
            </div>
            <p class="box4">1234567</p>
        </div>

        <div class="box1">
            <div class="box5">
                <img class="box2" src="https://p3.music.126.net/DrRIg6CrgDfVLEph9SNh7w==/18696095720518497.jpg">
                <div class="box3">&nbsp;&nbsp;&nbsp;播放量30000+</div> 
            </div>
            <p class="box4">1234567</p>
        </div>

        <div class="box1">
            <div class="box5">
                <img class="box2" src="https://p3.music.126.net/DrRIg6CrgDfVLEph9SNh7w==/18696095720518497.jpg">
                <div class="box3">&nbsp;&nbsp;&nbsp;播放量30000+</div> 
            </div>
            <p class="box4">1234567</p>
        </div>

        <div class="box1">
            <div class="box5">
                <img class="box2" src="https://p3.music.126.net/DrRIg6CrgDfVLEph9SNh7w==/18696095720518497.jpg">
                <div class="box3">&nbsp;&nbsp;&nbsp;播放量30000+</div> 
            </div>
            <p class="box4">1234567</p>
        </div>

        <div class="box1">
            <div class="box5">
                <img class="box2" src="https://p3.music.126.net/DrRIg6CrgDfVLEph9SNh7w==/18696095720518497.jpg">
                <div class="box3">&nbsp;&nbsp;&nbsp;播放量30000+</div> 
            </div>
            <p class="box4">1234567</p>
        </div>

        <div class="box1">
            <div class="box5">
                <img class="box2" src="https://p3.music.126.net/DrRIg6CrgDfVLEph9SNh7w==/18696095720518497.jpg">
                <div class="box3">&nbsp;&nbsp;&nbsp;播放量30000+</div> 
            </div>
            <p class="box4">1234567</p>
        </div>

        <div class="box1">
            <div class="box5">
                <img class="box2" src="https://p3.music.126.net/DrRIg6CrgDfVLEph9SNh7w==/18696095720518497.jpg">
                <div class="box3">&nbsp;&nbsp;&nbsp;播放量30000+</div> 
            </div>
            <p class="box4">1234567</p>
        </div>

        <div class="box1">
            <div class="box5">
                <img class="box2" src="https://p3.music.126.net/DrRIg6CrgDfVLEph9SNh7w==/18696095720518497.jpg">
                <div class="box3">&nbsp;&nbsp;&nbsp;播放量30000+</div> 
            </div>
            <p class="box4">1234567</p>
        </div>

        <div class="box1">
            <div class="box5">
                <img class="box2" src="https://p3.music.126.net/DrRIg6CrgDfVLEph9SNh7w==/18696095720518497.jpg">
                <div class="box3">&nbsp;&nbsp;&nbsp;播放量30000+</div> 
            </div>
            <p class="box4">1234567</p>
        </div>

        <div class="box1">
            <div class="box5">
                <img class="box2" src="https://p3.music.126.net/DrRIg6CrgDfVLEph9SNh7w==/18696095720518497.jpg">
                <div class="box3">&nbsp;&nbsp;&nbsp;播放量30000+</div> 
            </div>
            <p class="box4">1234567</p>
        </div>

        <div class="box1">
            <div class="box5">
                <img class="box2" src="https://p3.music.126.net/DrRIg6CrgDfVLEph9SNh7w==/18696095720518497.jpg">
                <div class="box3">&nbsp;&nbsp;&nbsp;播放量30000+</div> 
            </div>
            <p class="box4">1234567</p>
        </div>

        <div class="box1">
            <div class="box5">
                <img class="box2" src="https://p3.music.126.net/DrRIg6CrgDfVLEph9SNh7w==/18696095720518497.jpg">
                <div class="box3">&nbsp;&nbsp;&nbsp;播放量30000+</div> 
            </div>
            <p class="box4">1234567</p>
        </div>

        <div class="box1">
            <div class="box5">
                <img class="box2" src="https://p3.music.126.net/DrRIg6CrgDfVLEph9SNh7w==/18696095720518497.jpg">
                <div class="box3">&nbsp;&nbsp;&nbsp;播放量30000+</div> 
            </div>
            <p class="box4">1234567</p>
        </div>

        <div class="box1">
            <div class="box5">
                <img class="box2" src="https://p3.music.126.net/DrRIg6CrgDfVLEph9SNh7w==/18696095720518497.jpg">
                <div class="box3">&nbsp;&nbsp;&nbsp;播放量30000+</div> 
            </div>
            <p class="box4">1234567</p>
        </div>

        <div class="box1">
            <div class="box5">
                <img class="box2" src="https://p3.music.126.net/DrRIg6CrgDfVLEph9SNh7w==/18696095720518497.jpg">
                <div class="box3">&nbsp;&nbsp;&nbsp;播放量30000+</div> 
            </div>
            <p class="box4">1234567</p>
        </div>

        <div class="box1">
            <div class="box5">
                <img class="box2" src="https://p3.music.126.net/DrRIg6CrgDfVLEph9SNh7w==/18696095720518497.jpg">
                <div class="box3">&nbsp;&nbsp;&nbsp;播放量30000+</div> 
            </div>
            <p class="box4">1234567</p>
        </div>

        <div class="box1">
            <div class="box5">
                <img class="box2" src="https://p3.music.126.net/DrRIg6CrgDfVLEph9SNh7w==/18696095720518497.jpg">
                <div class="box3">&nbsp;&nbsp;&nbsp;播放量30000+</div> 
            </div>
            <p class="box4">1234567</p>
        </div>

       

        


     
    </div>
    
    
</body>
</html>

运行结果:


http://www.kler.cn/a/501762.html

相关文章:

  • Colossal-AI:深度学习大规模分布式训练框架
  • 典型的 package.json 文件中的
  • 面向对象分析与设计Python版 分析与设计概述
  • 每日一题(三):压缩字符串(行程长度编码)
  • mycat介绍与操作步骤
  • 如何在后端使用redis进行缓存,任意一种语言都可以
  • 【25考研】西南交通大学软件工程复试攻略!
  • 《AI赋能鸿蒙Next,打造极致沉浸感游戏》
  • goland 环境变量配置
  • Java阶段四04
  • 【Artificial Intelligence篇】AI 入侵家庭:解锁智能生活的魔法密码,开启居家梦幻新体验
  • LeetCode - #186 翻转字符串里的单词 II(会员题)
  • 搭建k8s集群
  • 设计模式-结构型-组合模式
  • AI知识-TF-IDF技术(Term Frequency-Inverse Document Frequency)
  • 【练习】力扣 热题100 轮转数组
  • Facebook 跨文化交流:打破国界的社交纽带
  • Realsense相机驱动安装及其ROS通讯配置——机器人抓取系统系列文章(四)
  • 【PyQt】如何在mainwindow中添加菜单栏
  • mac安装java17
  • GitLab CI/CD使用runner实现自动化部署前端Vue2 后端.Net 7 Zr.Admin项目
  • ASP.NET Core - 自定义中间件
  • (10)Ajax
  • Spring 核心指南(上):IoC 容器与配置方式详解
  • bert微调下游任务-情感分析
  • WRF模式与Python融合技术在多领域中的应用及精美绘图;Python助力WRF自动化运行、WRF模式前后处理等