基本上我得到以下HTML:
<button class="disabled btn-primary btn" type="submit" disabled="">
<i class="glyphicon glyphicon-ban-circle"></i>
Log in
</button>
Run Code Online (Sandbox Code Playgroud)
在本地,图标在按钮上显示正常,但是当我在Windows Azure上运行时,我得到以下按钮,带有奇怪的外观前缀而不是图标:
考虑到这一点,我意识到当在本地访问我的网站时,浏览器会尝试加载文件:/Content/fonts/glyphicons-halflings-regular.woff(它成功地执行),而当在线(在azure上)它将尝试在以下位置加载:/fonts/glyphicons-halflings-regular.woff
为什么它没有放置它在本地执行的/ Content前缀.
我正在使用标准的bootstrap文件,它是本地和在线运行的完全相同的网站.
我也是通过以下方式捆绑内容:
bundles.Add(new StyleBundle("~/Content/bootstrapcss").Include(
"~/Content/bootstrap/bootstrap.css"));
Run Code Online (Sandbox Code Playgroud)
文件结构如下所示:

bootstrap也在寻找这样的文件:
url('../fonts/glyphicons-halflings-regular.woff')
Run Code Online (Sandbox Code Playgroud)
所以我认为它会在Content文件夹中查找而不是root文件,因为它当前位于Content/bootstrapcss文件夹中.