How to “tint” image with css

前端 未结 6 1834
你的背包
你的背包 2020-12-15 04:05

I try to tint an image with the background attribute like this:

6条回答
  •  忘掉有多难
    2020-12-15 04:42

    Depending on your browser support use filter, many options at your disposal, caniuse.com looks promising http://caniuse.com/#search=css%20filter :-

    filter: blur(5px);
    filter: brightness(0.4);
    filter: contrast(200%);
    filter: drop-shadow(16px 16px 20px blue);
    filter: grayscale(50%);
    filter: hue-rotate(90deg);
    filter: invert(75%);
    filter: opacity(25%);
    filter: saturate(30%);
    filter: sepia(60%);
    

提交回复
热议问题