广东十一选五计划软件破解版
400-6688-8899 在线客服 人才招聘 返回顶部
企业动态 技术分享 行业动态

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

2016-10-13分享

广东十一选五计划软件破解版 www.k5ca.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-08-12
  • 重庆首家集群注册平台正式开放 2018-08-12
  • 冯潇霆淡出国家队他可挑起大梁!能力被名帅们看好 2018-06-21
  • 旅游--甘肃频道--人民网 2018-06-21
  • 学消防 可优先就业 2018-06-20