华宇娱乐登录是目前一流的互联网在线娱乐平台.主管华宇娱乐注册,华宇娱乐手机登录,华宇娱乐1970奖金,只为致力于港澳台、内地、日韩,东南亚,欧美等地明星艺人与广告主、演出商搭建起良好的合作平台。
4008-057865 在线客服 联系我们 返回顶部
企业动态 技术分享 行业动态

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

2016-10-13

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 © 2019 www.rglt.net 板权所有 浙ICP67568660  
sitemap