2012-09-27 38 views
0

我的根目录中有一个文件夹,它的作用是candyfive,它有我的html website,它正常工作,一个域指向它,我有一个名为“portal”的candyfive内的子文件夹。它是一个拥有自己的CSS和图像的网站的管理面板。css和图像无法加载?

问题是,在candyfive文件夹中的网站加载正确,但门户网站没有加载任何图像或CSS。

CSS在我的门户管理站点的链接是

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

我应该在这个代码添加,使其在子文件夹中的工作?

下面是网站结构:

candyfive/portal/index.php 
candyfive/index.html  - is working fine 
candyfive/portal/index.php - css and images not loading ? 

回答

0

使用

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

代替:

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

..是用来在目录树stucture上去..