一、高斯模糊是使用ps等工具实现的,方法如下(以ps为例):
1、在ps中打开背景图;
2、点击菜单栏中的滤镜;
3、点击模糊,再选择高斯模糊,如图;
5、通过调整半径来调整模糊的强度(半径越大越模糊),如图:
二、全屏显示的css代码:
.bg {
background-image:url(scale.jpg)
-moz-background-size: 100% 100%/* Firefox 3.6 */
-o-background-size: 100% 100%/* Opera 9.5 */
-webkit-background-size: 100% 100%/* Safari 3.0 */
background-size: 100% 100%/* Firefox 4.0 and other CSS3-compliant browsers */
-moz-border-image: url(scale.jpg) 0/* Firefox 3.5 */
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='scale.jpg', sizingMethod='scale')/* for <ie9 */
}
<!doctype html><html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style>
html{width:100%
height:100%}
body{width:100%
height:100%
background: url(../1.jpg) no-repeat
background-size:cover /*这里设置了背景图片为覆盖,以填满整个容器*/
}
</style>
</head>
<body>
</body>
</html>