使用canvas实现擦玻璃效果---转载
2016-04-12 15:08
337 查看
<!DOCTYPE html> <html> <head lang="zh"> <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width" /> <meta charset="UTF-8"> <title>HTML5擦玻璃效果 - 何问起</title> <base target="_blank" /> </head> <body style="margin: 0; padding: 0;"> <!-- 图片需用本地图片 ,网络图片无效 --> <div id="box" style="width: 100%; min-height:480px;" data-image-src="img/hovertreecity.jpg"></div> </body> </html> <style> .clean-window-out { position: relative; padding: 0; } .clean-window-out .window-image, .clean-window-out .window-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; } .clean-window-out .window-canvas { z-index: 2; } a { color: white; } .hwqewm { width: 200px; height: 176px; position: fixed; z-index: 99999; bottom: 0px; left: 0px; right: 0px; margin: 0px auto; color: white; } </style> <script src="http://hovertree.com/texiao/html5/25/hovertreegrass.js"></script> <!-- Greate by HoverTree (Sun Mar 27 02:45:46 CST 2016) 43ms -->
相关文章推荐
- html5拖拽
- greenDao 备注
- 浅谈坐标系以及之间的转换
- 【架构】架构漫谈
- 集合之HashMap
- Android学习之程序创建桌面快捷方式
- Apk 签名查看_笔记
- OSSIM 高可用架构
- 【JS】:JS中如何实现对任意区间的取整
- SVN Error : is scheduled for addition, but is missing
- stm32存储结构& 存储器映射(整理)
- dreamwear换行和输入空格
- 免费天气预报
- android jni 引用第三方 so
- linux中man 2与man 3区别
- GCD使用指南
- 2016-4-12杂学
- 连接Oracle数据库的Hibernate配置文件
- string类成员函数的使用方法(一)
- 百度地图