<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>jQuery游戏图片手风琴收缩切换特效</title>
<script type="text/javascript" src="js/jquery.min.js"></script>
<style type="text/css">
* {
margin: 0;
padding: 0;
}
body{background-color: #171717}
.box {
width: 1168px;
height: 519px;
background: red;
margin: 50px auto;
}
.item {
width: 119px;
height: 519px;
float: left;
}
.item:nth-child(1) {
background: url("images/feature-1.png") no-repeat 100% 100%;
/*background-size: 100% 100%; 背景图尺寸 */
}
.item:nth-child(2) {
background: url("images/feature-2.png") no-repeat 100% 100%;
}
.item:nth-child(3) {
background: url("images/feature-3.png") no-repeat 100% 100%;
}
.item:nth-child(4) {
background: url("images/feature-4.png") no-repeat 100% 100%;
}
.item:nth-child(5) {
background: url("images/feature-5.png") no-repeat 100% 100%;
}
.big {
width: 692px;
}
.big img {
display: none;
height: 519px;
}
</style>
<script type="text/javascript">
$(function () {
$(".item").mouseenter(function () {
$(this).addClass("big").siblings().removeClass("big");
});
});
</script>
</head>
<body>
<div class="box">
<div class="item big"><img src="images/01.png" alt=""></div>
<div class="item"><img src="images/02.png" alt=""></div>
<div class="item"><img src="images/03.png" alt=""></div>
<div class="item"><img src="images/04.png" alt=""></div>
<div class="item"><img src="images/05.png" alt=""></div>
</div>
</body>
</html>
jQuery游戏图片手风琴收缩切换特效
需积分: 1 137 浏览量
2023-11-05
20:34:08
上传
评论
收藏 381KB ZIP 举报
初尘屿风
- 粉丝: 3600
- 资源: 278
最新资源
- 本科毕业设计基于C# wpf人脸识别的考勤系统的设计与实现源码.zip
- 基于Ruoyi+uniapp实现学生考勤系统 学生考勤源码+项目说明.zip
- feae6bc968ca68a099455d8b8a8dea35
- 基于Pytorch训练CIRAR10上分类算法.zip
- Pytorch-pytorch深度学习教程之Tensorboard.zip
- 基于C++和Python开发yolov8-face作为人脸检测器dlib作为人脸识别器的人脸考勤系统源码+项目说明.zip
- Pytorch-pytorch深度学习教程之变分自动编码器.zip
- Pytorch-pytorch深度学习教程之神经风格迁移.zip
- Pytorch-pytorch深度学习教程之深度残差网络.zip
- Pytorch-pytorch深度学习教程之循环神经网络.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈