当前位置:网站首页>Video display and hiding of imitation tudou.com
Video display and hiding of imitation tudou.com
2022-07-05 01:49:00 【dengfengling999】
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.tudo {
position: relative;
width: 444px;
height: 320px;
background-color: pink;
margin: 30px auto;
}
.tudo img {
width: 100%;
height: 100%;
}
.mask {
display: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, .4) url(images/g.png) no-repeat center;
}
/* When the mouse passes the potato box , Let the mask layer show */
.tudo:hover .mask {
display: block;
}
</style>
</head>
<body>
<div class="tudo">
<div class="mask"></div>
<img src="images/photo.jpg" alt="">
</div>
</body>
</html>
result :
When the mouse clicks :
边栏推荐
- Es uses collapsebuilder to de duplicate and return only a certain field
- Valentine's Day flirting with girls to force a small way, one can learn
- Complex, complicated and numerous: illustration of seven types of code coupling
- Binary tree traversal - middle order traversal (golang)
- Kibana installation and configuration
- STM32 series - serial port UART software pin internal pull-up or external resistance pull-up - cause problem search
- After reading the average code written by Microsoft God, I realized that I was still too young
- Exploration and practice of integration of streaming and wholesale in jd.com
- Win:使用 PowerShell 检查无线信号的强弱
- Vulnstack3
猜你喜欢
Matrixone 0.2.0 is released, and the fastest SQL computing engine is coming
Exploration and practice of integration of streaming and wholesale in jd.com
Kibana installation and configuration
MATLB | multi micro grid and distributed energy trading
如何搭建一支搞垮公司的技術團隊?
Tucson will lose more than $400million in the next year
The steering wheel can be turned for one and a half turns. Is there any difference between it and two turns
Visual explanation of Newton iteration method
MySQL backup and recovery + experiment
微信小程序:微群人脉微信小程序源码下载全新社群系统优化版支持代理会员系统功能超高收益
随机推荐
Do you know the eight signs of a team becoming agile?
Win:使用组策略启用和禁用 USB 驱动器
微信小程序;胡言乱语生成器
Hedhat firewall
batchnorm.py这个文件单GPU运行报错解决
Stored procedure and stored function in Oracle
Codeforces Round #770 (Div. 2) ABC
Pytorch fine tuning (Fortune): hollowed out design or cheating
Win: add general users to the local admins group
C语音常用的位运算技巧
Exploration and practice of integration of streaming and wholesale in jd.com
Nebula Importer 数据导入实践
Win: use PowerShell to check the strength of wireless signal
Win:使用 PowerShell 检查无线信号的强弱
WCF: expose unset read-only DataMember property- WCF: Exposing readonly DataMember properties without set?
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
Comment mettre en place une équipe technique pour détruire l'entreprise?
JS implementation determines whether the point is within the polygon range
[CTF] AWDP summary (WEB)
The steering wheel can be turned for one and a half turns. Is there any difference between it and two turns