在HTML / CSS中将图像转换为灰度 - Convert an image to grayscale in HTML/CSS

问题:

Is there a simple way to display a color bitmap in grayscale with just HTML/CSS ? 有没有一种简单的方法能够用HTML/CSS显示灰度的彩色位图? this

It doesn't need to be IE-compatible (and I imagine it won't be) -- if it works in FF3 and/or Sf3, that's good enough for me. 它不须要与IE兼容(我想它不会) - 若是它在FF3和/或Sf3中工做,这对我来讲已经足够了。 spa

I know I can do it with both SVG and Canvas, but that seems like a lot of work right now. 我知道我能够用SVG和Canvas来作,但如今看起来不少工做。 .net

Is there a truly lazy person's way to do this? 有一个真正懒惰的人这样作的方法吗? code


解决方案:

参考一: https://stackoom.com/question/2YUz/在HTML-CSS中将图像转换为灰度
参考二: https://oldbug.net/q/2YUz/Convert-an-image-to-grayscale-in-HTML-CSS
相关文章
相关标签/搜索