bootstrap.min.css文件包含内容:'\ e257',但运行后更改为'?'

时间:2016-06-08 17:09:44

标签: html css twitter-bootstrap icons

bootstrap.css和bootstrap.min.css文件写得正确, 并且所有内容都在文件中正确显示, 例如

.glyphicon- Menu-left: before {content: "\e257"}

但是当我运行我的网站而不是图标时,会出现问号, 当我在Developer Tools窗口中打开bootstrap.min.css文件时,我看到内容被定义为问号。

enter image description here

这是怎么发生的?何时以及为何将CSS文件从'\ e257'更改为'?'我该如何解决?

编辑:

我发现了这一点,但仍然不知道原因。

@ Styles.Render( “〜/内容/ CSS”) 当bootstrap包含init。

bundles.Add(new StyleBundle("~/Content/css").Include( "~/Content/bootstrap.css", "~/Content/site.css", "~/Content/Font/fonts.css", "~/Content/jquery-ui-1.11.4.css")); } 更改引导程序以包含问号。

但是一旦我带上了引导程序。 ** **之后图标显示正确:

@Styles.Render("~/Content/css")
<link rel="stylesheet" type="text/css" href="~/Content/bootstrap.css">

0 个答案:

没有答案