0

BundleConfig.cs ファイルに次のものがあります

bundles.Add(new StyleBundle("~/Content/css").Include(
"~/Content/reset.css",
"~/Content/site.css"));

私の_Layout.cshtmlファイルで、私はこのようなスタイルを設定しました

@Styles.Render("~/Content/css")

そして、web.configファイルでデバッグをfalseに設定すると、htmlソースでこれを取得します

<link rel="stylesheet" href="/Content/css?v=o98MVeaPnTOPDtb6WAqw14YyALxEnOYDmGqwfyBAiq01">
The resource from this url is not text: http://localhost:1135/Content/css?v=o98MVeaPnTOPDtb6WAqw14YyALxEnOYDmGqwfyBAiq01
</link>

そして、どのスタイルも適用されません。ここで何が欠けていますか?

4

1 に答える 1