手机
当前位置:查字典教程网 >网页设计 >心得技巧 >把网页变成黑白(兼容谷歌、火狐、ie等浏览器)
把网页变成黑白(兼容谷歌、火狐、ie等浏览器)
摘要:往css文件里写入01.html{filter:grayscale(100%);-webkit-filter:grayscale(100%)...

往css文件里写入

01.html{ filter: grayscale(100%); -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); -ms-filter: grayscale(100%); -o-filter: grayscale(100%); filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0'/></filter></svg>#grayscale"); filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); -webkit-filter: grayscale(1);}

其实也就是加一个灰色滤镜

【把网页变成黑白(兼容谷歌、火狐、ie等浏览器)】相关文章:

将来比较流行的几种网站导航的方向

空路径对页面性能影响的解决方案

table td 图片水平垂直居中实现代码

网页体积的研究

Bootstrap3.0学习笔记之栅格系统案例

Tudou.com首页网页设计的制作方法

网页可读性提高的几个方法

中文网页内容表现的十条经验

网页防复制功能实现方法(附破解方法)

网页内容的浏览设计方式探讨

精品推荐
分类导航