是否有可能在不使用rgba渐变的情况下将背景图像与rgba颜色组合起来?
目前,我的CSS3样式如下:
html
{
background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
url("../icons/sombrero.jpg")no-repeat center center fixed;
}
但是我想象的是这样的:
html
{
background:rgba(0, 0, 0, 0.75),
url("../icons/sombrero.jpg")no-repeat center center fixed;
}
rgba颜色应该放在图片上面。 我从这里获得了渐变“hack”:这里。我正在寻找一种替代渐变技术的方法,而不是使用box-shadow技巧。