【发布时间】:2015-08-29 17:29:33
【问题描述】:
我想使用 css3 过滤器模糊此 html 代码的背景图像,请提供解释。
<!DOCTYPE html>
<html>
<head>
<title>Student-login</title>
<link href='http://fonts.googleapis.com/css?family=Slabo+27px' rel='stylesheet' type='text/css'>
<style>
body{
background-image: url("background.jpg");
background-size: cover;
background-repeat: no-repeat;
background-position: center;
background-attachment: fixed;
}
</style>
</head>
<body>
<div class="main-form">
<h1>Hello</h1>
</div>
</body>
</html>
但是这里面的内容不会模糊。
【问题讨论】:
-
为什么不直接使用已经模糊的图像?
-
你想如何模糊任何东西?
-
因为 css3 可以选择模糊任何不模糊的图像。使用 Photoshop 使每张图片模糊太麻烦我猜@Matt Ball
-
link@j08691
-
我投票结束这个问题作为离题,因为 OP 没有提供任何解决他的问题的尝试
标签: css