2012-09-27 64 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上去..