首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为什么StyleBundle中的引导程序样式没有加载?

为什么StyleBundle中的引导程序样式没有加载?
EN

Stack Overflow用户
提问于 2013-10-01 11:51:51
回答 1查看 794关注 0票数 0

我正在尝试使用StyleBundle将引导样式添加到现有项目中。同一捆绑包中的其他样式可以工作,但是引导程序样式不能。这是我的包:

代码语言:javascript
复制
        bundles.Add(new StyleBundle("~/bundles/css").Include(
            "~/Content/boostrap/boostrap.css",
            "~/Content/boostrap/boostrap-responsive.css",
            "~/Content/boostrap/boostrap-theme.css",
            "~/Content/font-awesome.css",
            "~/Content/Site.css"));

@Styles.Render("~/bundles/css")
@Scripts.Render("~/bundles/modernizr")

在Google Chrome > F12 > Network > Stylesheets选项卡中,我看不到bootstrap样式,但我可以看到font-awesome.css和site.css样式。

但是,如果我将样式拖放到index.html页面标题中,就可以看到它们。

代码语言:javascript
复制
<link href="~/Content/bootstrap/bootstrap.css" rel="stylesheet" />
<link href="~/Content/bootstrap/bootstrap-responsive.css" rel="stylesheet" />
<link href="~/Content/bootstrap/bootstrap-theme.css" rel="stylesheet" />

我也没有在浏览器中看到任何错误。我在bootstrap中遗漏了什么特别的东西吗?

EN

回答 1

Stack Overflow用户

发布于 2013-12-09 02:40:13

您的代码声明:../boostrap/...您应该使用/bootstrap/。这是一个简单的打字错误。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19107645

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档