html - 背景图像水平重复一行

标签 html css web-services

所以这是我的一些代码:

html{
    background-image: url(blue.jpg);
    background-repeat: no-repeat;
    background-repeat-x: no-repeat;
    background-size: cover;
}

但是,图像在第一行水平重复。在顶行之后,图像覆盖页面,顶部被重复的第一行覆盖。

我做错了什么?

最佳答案

您使用:

background-image: url(blue.jpg) no-repeat;

关于html - 背景图像水平重复一行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39071265/

相关文章:

html - 使用 float 时垂直堆叠 div

javascript - 如何使用 Prototype 自动调整文本区域的大小?

html - Weebly Navigation - 父菜单项在鼠标悬停在子项上时保持悬停状态

java - Spring ws - AxiomSoapMessage 和带有 MTOM 的附件是内联的

html - 我将如何收集尽可能多的文本 : "[subject] are ..." from the web? 实例

javascript - 背景全屏视频

html - 依赖于同级的交替选择器

html - Bootstrap 页面不占用全宽

web-services - getRealPath (“/” )- 这个方法的结果在 Tomcat 7 和 Tomcat 8 中有何不同

python - Google App Engine 中的 UnicodeDecodeError