39,087
社区成员
发帖
与我相关
我的任务
分享
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=9,chrome=1" />
<title> 页面名称 </title>
<style type="text/css">
.box {
position: relative;
width: 800px;
height: 600px;
}
.box .text{
position: absolute;
top: 250px;
left: 300px;
width: 200px;
height: 100px;
text-align: center;
font-size: 30px;
display: none;
}
.box:hover img {
-webkit-filter: blur(10px);
-moz-filter: blur(10px);
-ms-filter: blur(10px);
filter: blur(10px);
filter: progid:DXImageTransform.Microsoft.Blur(PixelRadius=10, MakeShadow=false); /* IE6~IE9 */
}
.box:hover .text {
display: block;
}
</style>
</head>
<body>
<div class="box">
<img src="xxxxxxxxxxx.jpg" width="800" height="600" border="0" alt="">
<div class="text">text text text</div>
</div>
</body>
</html>