0

我在我的 ASP.NET MVC 4 项目中使用 Twitter Bootstrap。以下是我的捆绑代码。

bundles.IgnoreList.Clear();
bundles.Add(new ScriptBundle("~/bundles/bootstrap/scripts").IncludeDirectory("~/bootstrap/js/", "*.js"));
bundles.Add(new ScriptBundle("~/bundles/bootstrap/css").IncludeDirectory("~/bootstrap/css/", "*.css"));

我在各个页面中使用这两个捆绑包以及其他特定捆绑包。问题是,我可以看到引导文件在 IE 中加载良好,但在 Firefox 和 Chrome 中没有加载。我在 bootstrap 文件夹的 JS 和 CSS 目录中有完整版本和缩小版本。我错过了什么吗?

4

1 回答 1

0

那是我的错误,我使用“ScriptBundle”添加 CSS .. 复制粘贴错误!

于 2013-04-15T05:57:56.333 回答