CSS3 grayscale滤镜图片变黑白实例页面
返回>>代码
CSS代码
.gray { -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); -ms-filter: grayscale(100%); -o-filter: grayscale(100%); filter: grayscale(100%); filter: gray; }
HTML代码
<img src="mm1.jpg" /> <img src="mm1.jpg" class="gray" />