0

ルート ディレクトリにフォルダーがcandyfiveあり、html websiteそれが適切に機能しており、ドメインがそれを指しています。candyfive 内に「ポータル」という名前のサブフォルダーがあります。独自の 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 ? 
4

1 に答える 1

0

使用する

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

それ以外の:

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

..ディレクトリ ツリー構造を上に移動するために使用されます。

于 2012-09-29T02:41:11.060 に答える