css 背景图像和线性渐变

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css 背景图像和线性渐变相关的知识,希望对你有一定的参考价值。

.tinted-image {
  background: 
    /* top, transparent red, faked with gradient */ 
    linear-gradient(
      rgba(255, 0, 0, 0.45), 
      rgba(255, 0, 0, 0.45)
    ),
    /* bottom, image */
    url(image.jpg);
}

以上是关于css 背景图像和线性渐变的主要内容,如果未能解决你的问题,请参考以下文章

css函数总结

css CSS:使用重复线性渐变的条纹背景

使用div+css实现背景颜色渐变,怎么实现呢?

css 线性渐变背景

如何将多个线性渐变添加到 CSS 背景?如果

CSS中的渐变——线性渐变