效果图:

<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
<style media="screen">
html,body {
height: 100%;
margin: 0px;
}
body {
background-image: url(http://b-ssl.duitang.com/uploads/blog/201406/28/20140628160330_r2RsB.jpeg);
background-attachment: fixed;
background-position: center;
background-size: cover;
position: relative;
}
    // 核心css -- 依据父级容器的背景效果实现毛玻璃
.wrap {
width: 100%;
height: 200px;
position: relative;
background: inherit;
box-shadow: 0px 0px 8px #333;
border-radius: 5px;
z-index: 0;
}
// 模糊效果
.wrap::before {
content: '';
position: absolute;
top:0;
right: 0;
bottom: 0;
left: 0;
background: inherit;
background-attachment: fixed;
filter: blur(5px);
z-index: -1;
}
// 增加透明度的白底 -- 非必要
.wrap::after {
content: '';
position: absolute;
top:0;
right: 0;
bottom: 0;
left: 0;
background: rgba(255,255,255,.35);
z-index: -1;
}
</style>
</head>
<body>
<div class="wrap">
<span style="padding: 60px;display: inline-block;">玻璃模糊效果... ...</span>
</div>
</body>
</html>

最新文章

  1. POJ 3233Matrix Power Series
  2. Windows Server 2008 R2 添加且制成“NFS服务器”角色后与Unix客户端匿名访问常见问题
  3. Spring加载xsd引起的问题小记
  4. 前后台json数据绑定——way.JS
  5. GP 环境参数名称列表
  6. struts请求源码的跟踪
  7. Altium Designer 15 --- Nets Update
  8. VS2015新建asp.net core站点
  9. php匿名函数小示例
  10. Android 如何设置默认语言
  11. How to upgrade boost libary using apt-get ?
  12. 第二篇:python高级之装饰器
  13. FMDB警告Warning: there is at least one open result set around after performing的问题
  14. Light OJ 1314 Names for Babies
  15. Android Intent的几种用法总结【转】
  16. java(12)字符串
  17. silverlight 基本信息学习随笔
  18. 【python】ftp连接,主被动,调试等级
  19. 10.21CRM项目(01)
  20. hbase 的一些坑

热门文章

  1. node中controller的get和post方法获取参数
  2. Android图片优化指南
  3. oracle SQL查询number字段精度丢失之解决方法
  4. 函数式接口和Lambda表达式
  5. 步步向前之Element-UI
  6. socket通信(TCP和UDP)
  7. __proto__ VS. prototype in JavaScript
  8. tcpdump指定IP和端口抓包
  9. spring boot 和 mybatis集成
  10. webpack配置之webpack.config.js文件配置