Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/70.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 颤振web加载css和图像_Html_Css_Flutter Web - Fatal编程技术网

Html 颤振web加载css和图像

Html 颤振web加载css和图像,html,css,flutter-web,Html,Css,Flutter Web,我在index.html中有这个 <img src="img/splash.png" class="center"/> <link rel="stylesheet" type="text/css" href="styles/styles.css"> 样式和img文件夹都位于“web”文件夹中。 找到了splash.png文件,但对于css文件,我得到以下信息: 样式

我在index.html中有这个

<img src="img/splash.png" class="center"/>

<link rel="stylesheet" type="text/css" href="styles/styles.css">

样式和img文件夹都位于“web”文件夹中。 找到了splash.png文件,但对于css文件,我得到以下信息:

样式表https://myapp-24b9f.web.app/forms/styles/styles.css 未加载…
。 我正在加载的url是:
https://myapp-24b9f.web.app/forms/somepage


为什么图像相对于“web”文件夹进行搜索,css文件相对于“forms”进行搜索?

我将此移到中的第一行,并解决了此问题:

    <base href="/">