Html如何获取此文件夹

时间:2016-06-18 10:51:39

标签: html css directory

我的网站上有两个文件夹。 我的目录结构如下: enter image description here 在我的Cidadao文件中,我想从资产中获取一个文件。

我正在尝试这样的代码:

<link rel="stylesheet" href="site/assets/plugins/bootstrap/css/bootstrap.css">

但这不起作用。

3 个答案:

答案 0 :(得分:1)

尝试

<link rel="stylesheet" href="../assets/plugins/bootstrap/css/bootstrap.css">

答案 1 :(得分:0)

要从文件夹内部升级到一级,请使用..

这不仅限于HTML;所有计算机语言都是这样的。 (有些人需要斜线相反,但原则是相同的。)

答案 2 :(得分:0)

你的路径不正确。

应为throw new NotImplementedException()

或者您可以尝试<link rel="stylesheet" href="/site/assets/plugins/bootstrap/css/bootstrap.css">

或者您也可以尝试<link rel="stylesheet" href="/assets/plugins/bootstrap/css/bootstrap.css">

以上3中的一个应该有效,<link rel="stylesheet" href="../assets/plugins/bootstrap/css/bootstrap.css">在文件路径方面很重要。