<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
.banner_box{
width: 100%;
height: 400px;
border:2px solid bisque;
/*overflow: hidden;*/
}
.banner_box div{
width: 158px;
height: 100%;
float: left;
overflow: hidden;
}
img{
/*width: 100%;*/
width: 500px;
height: 100%;
border: #F8F8FF 2px solid;
border-radius: 10px;
}
</style>
<script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
</head>
<body>
<script>
$(document).ready(function(){
$(".banner_box div").mouseover(function(){
$(this).siblings().animate({
width:"158px"
},300)
$(this).animate({
width:"500px"
},300)
})
})
</script>
<div class="banner_box">
<div><img src="img/2.jpg" /></div>
<div><img src="img/3.jpg"/></div>
<div><img src="img/4.jpg"/></div>
<div><img src="img/5.jpg"/></div>
<div><img src="img/6.jpg"/></div>
</div>
</body>
</html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
.banner_box{
width: 100%;
height: 400px;
border:2px solid bisque;
/*overflow: hidden;*/
}
.banner_box div{
width: 158px;
height: 100%;
float: left;
overflow: hidden;
}
img{
/*width: 100%;*/
width: 500px;
height: 100%;
border: #F8F8FF 2px solid;
border-radius: 10px;
}
</style>
<script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
</head>
<body>
<script>
$(document).ready(function(){
$(".banner_box div").mouseover(function(){
$(this).siblings().animate({
width:"158px"
},300)
$(this).animate({
width:"500px"
},300)
})
})
</script>
<div class="banner_box">
<div><img src="img/2.jpg" /></div>
<div><img src="img/3.jpg"/></div>
<div><img src="img/4.jpg"/></div>
<div><img src="img/5.jpg"/></div>
<div><img src="img/6.jpg"/></div>
</div>
</body>
</html>