 2016-10-13
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:
 在线咨询
在线咨询
					
					 
							
							于图层样式的投影,相信很多人都用过,而且非常熟练!不过很多……
 
							
							Desaturating a color image couldnt be simpler with CSS3. Well apply the filter as……
 
							
							什么是角色和权限? 和其他 CMS 或者 Web 程序一样,WordPress 也有……
 
							
							昨天,美国斯坦福大学医学院媒体关系部工作人员告诉京华时报……
 
							
							据上海市政府新闻办公室官方微博上海发布5月4日消息: @经济和……
 
							
							2016年4月18日,根据群众举报和专家评审结果,新闻出版广电总局……