Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/77.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 NativeScript映像不工作_Html_Css_Angular_Nativescript - Fatal编程技术网

Html NativeScript映像不工作

Html NativeScript映像不工作,html,css,angular,nativescript,Html,Css,Angular,Nativescript,在我的NativeScript Angular项目中,我试图将图像添加到我的背景中,但我不断得到一个错误,即 值:错误:响应内容可能无法转换为图像文件 下面是我的html,其中类是: 在css中将url用作图像时,url需要包含图像的文件类型。例如:https://imgur.com/IjYwn5e.jpg我可能弄错了,但您需要在文件末尾添加一个文件类型url@mast3rd3mon哇,你说得对,我是个白痴哈哈。谢谢,我写这封信是为了回答别人可能会发现的问题,如果他们犯了同样的错误,你能帮我

在我的NativeScript Angular项目中,我试图将图像添加到我的背景中,但我不断得到一个错误,即

值:错误:响应内容可能无法转换为图像文件

下面是我的html,其中类是:



在css中将url用作图像时,url需要包含图像的文件类型。例如:
https://imgur.com/IjYwn5e.jpg

我可能弄错了,但您需要在文件末尾添加一个文件类型url@mast3rd3mon哇,你说得对,我是个白痴哈哈。谢谢,我写这封信是为了回答别人可能会发现的问题,如果他们犯了同样的错误,你能帮我吗?