css 实现高斯模糊
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <style> *{ margin: 0; padding: 0; list-style: none; } .box{ width: 100%; height: 300px; } .box img{width: 100%} .blur { filter: url(blur.svg#blur); /* FireFox, Chrome, Opera */ -webkit-filter: blur(40px); /* Chrome, Opera */ -moz-filter: blur(40px); -ms-filter: blur(40px); filter: blur(40px); filter: progid:DXImageTransform.Microsoft.Blur(PixelRadius=10, MakeShadow=false); /* IE6~IE9 */ } </style> <body> <div class="box"> <img src="1.jpg" alt=""> <img src="1.jpg" alt="" class=" blur"> </div> </body> </html>