4008-888-888 在线客服 联系我们 返回顶部
企业动态 技术分享 行业动态



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 ( pk10投注版权所有 苏ICP12345678  技术支持:网站模版

pk10投注 pk10投注开奖 pk10投注官网开奖 pk10投注开奖结果 pk10投注走势图 pk10投注开奖走势图 pk10投注开奖直播 pk10投注开奖记录 pk10投注规律 pk10投注历史记录 pk10投注玩法 pk10投注规则 pk10投注技巧 pk10投注平台 pk10投注开户 pk10投注网址 pk10投注官网 pk10投注官方网站 pk10投注网站 pk10投注计划 pk10投注人工计划 pk10投注全天计划 pk10投注预测 pk10投注在线预测