转载地址:http://blog.csdn.net/ohehehou/article/details/51975539
需求:一个div设置了background: url,现在需要使图片背景模糊,div内的文字清晰显示。
原始代码:
<!DOCTYPE html>
<html lang="en"> <head> <meta charset="utf-8"> <style type="text/css"> .content { color: #ffffff; font-size: 40px; } .bg { background: url('1.jpg'); background-repeat: no-repeat; background-position: center; background-size: cover; height: