web前端第六次作业---制作网页页面

ops/2025/1/17 13:21:39/

制作网页页面

代码:

<!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.ppmy.cn/ops/150812.html

相关文章

数据结构学习记录-数据结构概念

1 数据结构&#xff1a; 数据结构是计算机存储&#xff0c;管理数据的方式。 数据必须依据某种逻辑联系组织在一起存储在计算机内 数据结构研究的就是这种数据的存储结构和数据的逻辑结构。 1.1 数据的逻辑结构&#xff1a; 逻辑结构指的是数据本身之间的关系 集合&#x…

zustand 切片模式使用,persist 中间件持久化状态

zustand - npm 安装 npm i zustand 创建切片目录&#xff1a; 创建切片 channelStore.js import { getChannelsAPI } from "/apis/article"; const channelStore (set) > {return {channelList: [],fetchChannelList: async () > {const res await getChanne…

传统数据湖和数据仓库的“中心化瓶颈”

传统数据湖和数据仓库的**“中心化瓶颈”**&#xff0c;主要是由于其架构设计和治理模式的局限性&#xff0c;无法有效应对现代企业中数据规模的快速增长和组织复杂性。以下是具体表现&#xff1a; 1. 单点瓶颈&#xff08;Single Point Bottleneck&#xff09; 传统数据湖/仓…

阀井可燃气体监测仪,开启地下管网安全新篇章-旭华智能

在城市的脉络中&#xff0c;地下管网犹如隐秘的动脉&#xff0c;支撑着现代生活的运转。而在这庞大网络的关键节点上&#xff0c;阀井扮演着不可或缺的角色。然而&#xff0c;由于其密闭性和复杂性&#xff0c;阀井内部一旦发生可燃气体泄漏&#xff0c;将对公共安全构成严重威…

2025年01月16日Github流行趋势

项目名称&#xff1a;tabby 项目地址url&#xff1a;https://github.com/TabbyML/tabby 项目语言&#xff1a;Rust 历史star数&#xff1a;27449 今日star数&#xff1a;1439 项目维护者&#xff1a;wsxiaoys, apps/autofix-ci, icycodes, liangfung, boxbeam 项目简介&#xf…

Spring Cache

Spring Cache缓存框架 ‌Spring Cache‌是Spring框架提供的一种缓存抽象机制&#xff0c;用于简化应用中的缓存操作。它通过将方法的返回值缓存起来&#xff0c;当下次调用同一方法时&#xff0c;如果传入的参数与之前的调用相同&#xff0c;就可以直接从缓存中获取结果&#x…

C++中的琐碎知识点

指针、常量和类型别名 1.使用 typedef char *pstring; const pstring cats 0; 时&#xff1a; 首先&#xff0c;typedef char *pstring; 定义了 pstring 是 char * 的别名&#xff0c;即 pstring 表示一个指向 char 的指针类型。然后&#xff0c;const pstring cats 0; 意味…

c#-Halcon入门教程——标定

Halcon代码 read_image (NinePointCalibration, D:/Desktop/halcon/ca74d-main/九点标定/NinePointCalibration.gif)rgb1_to_gray (NinePointCalibration, GrayImage)get_image_size (GrayImage, Width, Height) dev_display (GrayImage)* 获取当前显示的窗口句柄 dev_get_win…