<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
div img {
width: 500px;
height: 500px;
margin-left: 485px;
;
}
/* blur 是一个函数 小括号里面数值越大,图片越模糊 单位px */
img {
filter: blur(15px);
}
img:hover {
filter: url(0);
}
</style>
</head>
<body>
<div><img src="images/xingkong.jpg" alt=""></div>
</body>
</html>