我一直试图在我的背景图片上使用线性渐变,以获得背景底部从黑色到透明的褪色效果,但似乎不能使其显示。
我在这里读过其他案例和例子,但没有一个对我有用。我只能看到渐变或图像,但不能两者都看到。 这里是 < a href = “ http://nazer.urucas.com/”> 链接
只要点击第一个标志,忽略这个效果,我正在尝试的是在整个网站的身体之后。
这是我的代码:
body {
background: url('http://www.skrenta.com/images/stackoverflow.jpg') no-repeat, -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.1)), to(rgba(0, 0, 0, 1)));
}