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:
于圖層樣式的投影,相信很多人都用過,而且非常熟練!不過很多……
Desaturating a color image couldnt be simpler with CSS3. Well apply the filter as……
什么是角色和權限? 和其他 CMS 或者 Web 程序一樣,WordPress 也有……
昨天,美國斯坦福大學醫學院媒體關系部工作人員告訴京華時報……
據上海市政府新聞辦公室官方微博上海發布5月4日消息: @經濟和……
2016年4月18日,根據群眾舉報和專家評審結果,新聞出版廣電總局……