炫酷蒙层效果

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>杂志订阅</title>
<style>
*{margin: 0;padding: 0px;list-style: none;}
.block_box{width: 1200px;margin: 0 auto;}
.block_box ul{float: left;}
.block_box ul li{float: left;width: 25%;position: relative;overflow: hidden;}
.block_box ul li:hover .title{display: block;

-webkit-transition: all 0.7s ease;
-moz-transition: all 0.7s ease;
-ms-transition: all 0.7s ease;
-o-transition: all 0.7s ease;
transition: all 0.7s ease;}
.block_box ul li:hover .title span{display: block; color: #fff;}
.block_box ul li:hover img{
transform: scale(1.2,1.2); -webkit-transform: scale(1.2,1.2);
-webkit-transition: all 0.7s ease;
-moz-transition: all 0.7s ease;
-ms-transition: all 0.7s ease;
-o-transition: all 0.7s ease;
transition: all 0.7s ease;
}
.block_box ul li img{width: 100%;height: 400px;}
.title{position: absolute;top: 0;left: 0px;width: 100%;text-align: center;background: rgba(255, 66, 41, 0.9);height: 404px;display: none;}
.title span{position: absolute;top:120px;left:0;display: none;width: 100%;}
</style>
</head>
<body>
<div class="block_box">
<ul>
<li>
<img src="./img/feng_01.jpeg" alt="">
<div class="title">
<span>我的小峰峰</span>
</div>
</li>

<li>
<img src="./img/feng_02.jpeg" alt="">
<div class="title">
<span>我的小峰峰</span>
</div>
</li>

<li>
<img src="./img/feng_03.jpeg" alt="">
<div class="title">
<span>我的小峰峰</span>
</div>
</li>

<li>
<img src="./img/feng_04.jpeg" alt="">
<div class="title">
<span>我的小峰峰</span>
</div>
</li>

</ul>
</div>


</body>
</html>

转载于:https://www.cnblogs.com/-zhuli/p/5129589.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值