1

この質問をして本当に申し訳ありません。問題を解決しようとしているのは数時間です。ASP.NETMVCは初めてです。2つの画像を参照するcssファイルがあります。コードは次のとおりです。

.white
{
    background-image: url("images/site/glyphicons-halflings-white.png");
}
.normal
{
    background-image: url("images/site/glyphicons-halflings.png");
}

これらの画像もContent\images\siteフォルダに追加しました。ただし、画像は読み込まれず、cssは機能しません。私はfirebugでこれらの2つのエラーメッセージを見ることができます:

NetworkError:404 Not Found -http:// localhost:38544 / Content / images / site / glyphicons-halflings.png "

NetworkError:404 Not Found -http:// localhost:38544 / Content / images / site / glyphicons-halflings-white.png "

どんな助けでも事前に感謝されます。

4

1 に答える 1

4

404エラーは、CSSで画像のファイル名のつづりを間違えたか、指定したフォルダに画像を実際にコピーするのを忘れたことを示す非常に強力な兆候です。

于 2012-12-29T17:01:55.200 に答える