【发布时间】:2023-05-14 03:26:02
【问题描述】:
这里的CSS...
background-image: url("image/login-background-image.png");
background-repeat: no-repeat;
background-size: cover;
我想要背景图像的背景颜色。
【问题讨论】:
-
请分享预期的输出,更多细节也很好!
这里的CSS...
background-image: url("image/login-background-image.png");
background-repeat: no-repeat;
background-size: cover;
我想要背景图像的背景颜色。
【问题讨论】:
你的意思是这样的吗?
适用于所有主要浏览器 - 在 chrome 上测试,即 firefox 和 edge。
body {
background-image:
linear-gradient(rgba(46, 49, 65, 0.8), rgba(46, 49, 65, 0.8)),
url("https://images.freeimages.com/images/large-previews/647/snowy-mountain-1378865.jpg");
width:100%;
height:100%;
}
【讨论】:
希望下面的 CSS 对你有用...
背景:#ff0000 url("image/login-background-image.png");
如果没有,请分享预期的输出以及 HTML 和 CSS
【讨论】: