Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/82.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 - Fatal编程技术网

Html 如何将索引图像合并到网页中

Html 如何将索引图像合并到网页中,html,css,Html,Css,我想在我的网页中使用。但是,它们被读取为text/html,因此不会显示: 这是我的密码: body { background: #FFFFFF; background-image: url("imagenes/conversacion/backgroundConversacion.png"); background-repeat: no-repeat; background-position: 50% 6.2%; overflow: hidden; us

我想在我的网页中使用。但是,它们被读取为text/html,因此不会显示:

这是我的密码:

body {
   background: #FFFFFF;
   background-image: url("imagenes/conversacion/backgroundConversacion.png");
   background-repeat: no-repeat;
   background-position: 50% 6.2%;
   overflow: hidden;

   user-select: none;
   -moz-user-select: none;
   -khtml-user-select: none;
   -webkit-user-select: none;
   -o-user-select: none;
}

编辑:不,url没有错。另外,这里是我使用的其他.png(非索引图像)的类型。

如前所述,这可能是路径上的错误(事实并非如此),也可能是服务器端的某个问题导致映像混乱。由于我正在使用robot Pepper来显示它,我想剩下的唯一选项是它在内部破坏了我的图像,因此这不是代码的问题(如我所想),而是robot的问题。

你确定你的路径正确吗?是的,我完全确定“但是,它们是以文本/html形式读取的”-URL确实返回HTML…但它们也有404状态,表示“未找到”。你只是把URL搞错了(要么是因为它完全错了,要么是因为你上传失败)。“编辑:不,URL没有错。”-服务器说404找不到,所以要么URL搞错了,要么是你有一些异常深奥的服务器端逻辑,对图像执行测试,如果它不喜欢图像的某个功能,就进行404。实际上,这正是发生的事情。我用机器人Pepper来显示网页,而且它的内部服务器不喜欢任何不是“常规的”.png的东西。我想我必须找到另一种方法来压缩图像。