当前位置:网站首页>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 :
边栏推荐
- Outlook: always prompt for user password
- Include rake tasks in Gems - including rake tasks in gems
- I use these six code comparison tools
- JS implementation determines whether the point is within the polygon range
- phpstrom设置函数注释说明
- Remote control service
- [OpenGL learning notes 8] texture
- Summary of regularization methods
- Database postragesq role membership
- [Chongqing Guangdong education] National Open University spring 2019 1042 international economic law reference questions
猜你喜欢
Nebula Importer 数据导入实践
Binary tree traversal - middle order traversal (golang)
[Digital IC hand tearing code] Verilog edge detection circuit (rising edge, falling edge, double edge) | topic | principle | design | simulation
Roads and routes -- dfs+topsort+dijkstra+ mapping
微信小程序:全网独家小程序版本独立微信社群人脉
Comment mettre en place une équipe technique pour détruire l'entreprise?
JS implementation determines whether the point is within the polygon range
Visual explanation of Newton iteration method
After reading the average code written by Microsoft God, I realized that I was still too young
Five ways to query MySQL field comments!
随机推荐
phpstrom设置函数注释说明
【LeetCode】88. Merge two ordered arrays
runc hang 导致 Kubernetes 节点 NotReady
[OpenGL learning notes 8] texture
Visual studio 2019 set transparent background (fool teaching)
Mysql database | build master-slave instances of mysql-8.0 or above based on docker
Pytorch fine tuning (Fortune): hollowed out design or cheating
JVM - when multiple threads initialize the same class, only one thread is allowed to initialize
Win: add general users to the local admins group
Interesting practice of robot programming 14 robot 3D simulation (gazebo+turtlebot3)
官宣!第三届云原生编程挑战赛正式启动!
[swagger]-swagger learning
Wechat applet: independent background with distribution function, Yuelao office blind box for making friends
220213c language learning diary
Main window in QT application
Redis' hyperloglog as a powerful tool for active user statistics
172. Zero after factorial
MySQL REGEXP:正则表达式查询
C语音常用的位运算技巧
Limited query of common SQL operations