敢问路在何方

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>

  

posted @ 2017-05-24 13:08  敢问  阅读(6067)  评论(0编辑  收藏  举报