<div class="index-back">
<div class="index-container">
<div class="one">
<img class="imgclick" src="https://ossculturecloud.oss-cn-hangzhou.aliyuncs.com/artPopularization/pc/index/onefont.png" />
<img class="img" onclick="jump('/artPopularization/pc/startup')" src="https://ossculturecloud.oss-cn-hangzhou.aliyuncs.com/artPopularization/pc/index/star.png" />
</div>
<div class="two"> <img class="imgclick" src="https://ossculturecloud.oss-cn-hangzhou.aliyuncs.com/artPopularization/pc/index/twofont.png" />
<img class="img" onclick="jump('/artPopularization/pc/classroom')" src="https://ossculturecloud.oss-cn-hangzhou.aliyuncs.com/artPopularization/pc/index/gongyi.jpg" />
</div>
<div class="three"><img class="imgclick" src="https://ossculturecloud.oss-cn-hangzhou.aliyuncs.com/artPopularization/pc/index/threefont.png" />
<img class="img" onclick="jump('/artPopularization/pc/universal')" src="https://ossculturecloud.oss-cn-hangzhou.aliyuncs.com/artPopularization/pc/index/yunshang.jpg" />
</div>
<div class="four"><img class="imgclick" src="https://ossculturecloud.oss-cn-hangzhou.aliyuncs.com/artPopularization/pc/index/fourfont.png" />
<img class="img" onclick="jump(`http://xuexi.bjszwhg.org.cn/`)" src="https://ossculturecloud.oss-cn-hangzhou.aliyuncs.com/artPopularization/pc/index/online.jpg" />
</div>
<div class="five"><img class="imgclick" src="https://ossculturecloud.oss-cn-hangzhou.aliyuncs.com/artPopularization/pc/index/fivefont.png" />
<img class="img" onclick="jump('/artPopularization/pc/demonstrationSite')" src="https://ossculturecloud.oss-cn-hangzhou.aliyuncs.com/artPopularization/pc/index/puji.jpg" />
</div>
<div class="six"><img class="imgclick" src="https://ossculturecloud.oss-cn-hangzhou.aliyuncs.com/artPopularization/pc/index/sixfont.png" />
<img class="img" onclick="jump('/artPopularization/pc/exhibition')" src="https://ossculturecloud.oss-cn-hangzhou.aliyuncs.com/artPopularization/pc/index/wenchuang.jpg" />
</div>
<div class="seven"><img class="imgclick" src="https://ossculturecloud.oss-cn-hangzhou.aliyuncs.com/artPopularization/pc/index/sevenfont.png" />
<img class="img" onclick="jump('/artPopularization/pc/activityDetails')" src="https://ossculturecloud.oss-cn-hangzhou.aliyuncs.com/artPopularization/pc/index/huodong.jpg" />
</div>
<div class="eight"><img class="imgclick" src="https://ossculturecloud.oss-cn-hangzhou.aliyuncs.com/artPopularization/pc/index/eightfont.png" />
<img class="img" onclick="jump(`https://www.bjszwhg.org.cn/volunteer/54`)" src="https://ossculturecloud.oss-cn-hangzhou.aliyuncs.com/artPopularization/pc/index/wenhua.jpg" />
</div>
</div>
</div>
</html>
<script>
$('.index-container > div').hover(function() {
$(this).find('.img').stop().animate({
"height": "648px"
}, 200).parent('div').siblings().find('.img').stop().animate({
"height": "0px"
}, 200);
});
</script>
<style>
.index-container {
width: 1200px;
min-height: 500px;
margin: auto;
padding-bottom: 135px;
div {
width: 1200px;
text-align: center;
cursor: pointer;
margin-bottom: 10px;
transform: translate3d(0, 0, 0);
backface-visibility: hidden;
perspective: 1000;
// line-height: 82px;
// height: 85px;
img {
height: 70px;
// transition: all 5s;
}
.img {
width: 1200px;
// height:648px ;
height: 0px;
object-fit: cover;
padding: 0 47.5px;
margin: 0 auto;
box-sizing: border-box;
transition: all 0.7s ease 0s;
transform: translate3d(0, 0, 0);
backface-visibility: hidden;
perspective: 1000;
}
}
.one {
background-image: url(https://ossculturecloud.oss-cn-hangzhou.aliyuncs.com/artPopularization/pc/index/one.png);
.img {
height: 648px;
display: block;
}
}
.two {
background-image: url(https://ossculturecloud.oss-cn-hangzhou.aliyuncs.com/artPopularization/pc/index/two.png);
}
.three {
background-image: url(https://ossculturecloud.oss-cn-hangzhou.aliyuncs.com/artPopularization/pc/index/three.png);
}
.four {
background-image: url(https://ossculturecloud.oss-cn-hangzhou.aliyuncs.com/artPopularization/pc/index/four.png);
}
.five {
background-image: url(https://ossculturecloud.oss-cn-hangzhou.aliyuncs.com/artPopularization/pc/index/five.png);
}
.six {
background-image: url(https://ossculturecloud.oss-cn-hangzhou.aliyuncs.com/artPopularization/pc/index/six.png);
}
.seven {
background-image: url(https://ossculturecloud.oss-cn-hangzhou.aliyuncs.com/artPopularization/pc/index/seven.png);
}
.eight {
background-image: url(https://ossculturecloud.oss-cn-hangzhou.aliyuncs.com/artPopularization/pc/index/eight.png);
}
}
</style>
图片切换的代码块
最新推荐文章于 2024-08-18 16:06:40 发布