使用CSS重复Html背景图像

使用CSS重复Html背景图像,html,css,background,Html,Css,Background,我想避免重复背景图像。下面的代码似乎有问题,因为它不起作用。它总是重复。我要左上角不重复 代码 使用背景位置属性&背景重复属性 该代码对您很有用 body { background-color: #000000; background-image: url('../images/bg/bgheleneLogo.JPG'); background-repeat: no-repeat; background-attachment: fixed; background-position-x:top;

我想避免重复背景图像。下面的代码似乎有问题,因为它不起作用。它总是重复。我要
左上角不重复

代码


使用
背景位置
属性&
背景重复
属性

该代码对您很有用

body {
background-color: #000000;
background-image: url('../images/bg/bgheleneLogo.JPG');
background-repeat: no-repeat;
background-attachment: fixed;
background-position-x:top; 
background-position-y:left;  }

嗨,库拉姆,非常感谢你的快速回复。我试过了,但效果并不理想。我的情况如下。我只是在左上角有一个非常小的徽标背景。其余的是深黑色。在最后的标志应在整个地区。希望你能帮上忙。请看这里的最新情况:非常感谢。您包括了25个CSS文件,其中大多数从未在给定页面中使用过,可能是特定的文件与之交互…因此您需要特定&提供特定部分的代码,
body {
background-color: #000000;
background-image: url('../images/bg/bgheleneLogo.JPG');
background-repeat: no-repeat;
background-attachment: fixed;
background-position-x:top; 
background-position-y:left;  }