天津11选5星期几开奖
400-6688-8899 在线客服 人才招聘 返回顶部
企业动态 技术分享 行业动态

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

2016-10-13分享

天津11选5星期几开奖 www.8q4l.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号  技术支持:寻模板
  • 皖鄂川387位县级人大常委会主任进京参加培训 2018-09-26
  • 青洽会五方面凸显绿色发展 2018-09-26
  • 原保监会主席项俊波妻子及两个秘书亦被查 与妻子结婚离婚又复婚 2018-06-21
  • 电影导演霍建起:用电影观察与讲述 2018-06-21
  • 日本企业代表团考察亚泰国际医药健康产业园 2018-06-20
  • 安徽全口径监管医保基金 2018-06-20