Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何从背景图像中删除可见像素_Html_Css_Image_Background Image_Repeat - Fatal编程技术网

Html 如何从背景图像中删除可见像素

Html 如何从背景图像中删除可见像素,html,css,image,background-image,repeat,Html,Css,Image,Background Image,Repeat,我对背景图像有问题。在一些决议中,我看到我的框架内开始复制。如果我减小背景大小的值,则内部问题得到解决,但外部问题开始重复。我不知道如何强制背景图像在所有宽度上都不重复。我的部分看起来像: background-image: url('...'); background-position: center; background-size: 16.5%; background-color: #000000; width: 100%; height: 100%; padding: 0 3.1% 3.

我对背景图像有问题。在一些决议中,我看到我的框架内开始复制。如果我减小
背景大小的值
,则内部问题得到解决,但外部问题开始重复。我不知道如何强制背景图像在所有宽度上都不重复。我的部分看起来像:

background-image: url('...');
background-position: center;
background-size: 16.5%;
background-color: #000000;
width: 100%;
height: 100%;
padding: 0 3.1% 3.1%;
尝试添加:

background-repeat: no-repeat;

加上一把小提琴,解决这个问题会更好