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:
2016年4月18日,根据群众举报和专家评审结果,新闻出版广···
于图层样式的投影,相信很多人都用过,而且非常熟练!不过很多人···
Desaturating a color image cou···
什么是角色和权限?和其他 CMS 或者 Web 程序一样,W···
斯坦福大学回应"魏则西事件":未与中方医院合2016-08-···