安徽十一选五开奖结果来彩彩票
400-6688-8899 在线客服 人才招聘 返回顶部
企业动态 技术分享 行业动态

CSS怎么使网页全部变成灰色

2016-10-13分享

安徽十一选五开奖结果来彩彩票 www.3ew0.com Desaturating a color image couldn’t be simpler with CSS3. We’ll apply the filter as a class, as you’d typically desire several images to be affected by the code at the same time:

img.desaturate { filter: grayscale(100%); }

Naturally, all current browsers implement CSS3 filters via vendor prefixes, so our first job is to insert that code, writing in CSS that does not yet exist in order to future-proof our work:

img.desaturate { filter: grayscale(100%);
-webkit-filter: grayscale(100%);
-moz-filter: grayscale(100%);
filter: grayscale(100%);
}

Applying the class to the image is easy:

在线咨询
Copyright © 2002-2011 织梦模板 版权所有 闽CIP123456号  技术支持:寻模板
  • 秦皇岛原料药干混输送一体机研发生产基地正式投产 2018-06-20
  • 哈儿,既然已经按需分配了,也就是说,你的自我实现需求也都满足了,那按劳分配的那一部分有何必要?只要不哈,就知道你的天一句【按需分配】地一句【按劳分配】逻辑不通也 2018-06-20
  • 下好一盘棋 共护一江水 2018-06-20
  • 许维鸿:贫困县摘了帽,人力资源得跟上 2018-06-20
  • 980| 207| 431| 442| 721| 806| 389| 29| 883| 47|