我试图让一个字体在一个文件中呈现,它给我通常的错误
Resource interpreted as Font but transferred with MIME type text/html:
Run Code Online (Sandbox Code Playgroud)
但是展示的HTML文件是我们的404.aspx文件,我尝试在web.config中安装应用程序,然后最终进入IIS本身:
.woff application/font-woff
.ttf application/font-ttf
.eot application/vnd.ms-fontobject
.otf application/font-otf
.svg image/svg+xml
Run Code Online (Sandbox Code Playgroud)
我无法理解我哪里出错了.这些文件存储在一个名为fonts的文件夹中,该文件夹位于该站点的基本目录中,我的样式位于我的aspx文件中
@font-face {
font-family: 'segoe_printregular';
src: url('/fonts/segoepr-webfont.eot'); /* IE9 Compat Modes */
src: url('/fonts/segoepr-webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('/fonts/segoepr-webfont.woff') format('woff'), /* Modern Browsers */
url('/fonts/segoepr-webfont.ttf') format('truetype'), /* Safari, Android, iOS */
url('/fonts/segoepr-webfont.svg#svgFontName') format('svg'); /* Legacy iOS */
font-weight: normal;
font-style: normal;
}
Run Code Online (Sandbox Code Playgroud)
和fonts文件夹中的stylesheet.css如下:
@font-face {
font-family: 'segoe_printregular';
src: url('/segoepr-webfont.eot'); /* IE9 Compat Modes */
src: url('/segoepr-webfont.eot?#iefix') format('embedded-opentype'), /* …Run Code Online (Sandbox Code Playgroud) 我目前正在使用Umbraco 7.1.8并且我刚刚完成了我的最终模板,但是我想创建一个类似于列表的标签,以便客户端按照自己的意愿添加.
我有一个带有别名workUndertaken的多个文本框但是当我调用它时,它回声System.String[].
我的代码非常简单 - 我称之为两种不同的方法,以确保它不是一个方法的问题.
<p>@Model.Content.GetPropertyValue("workUndertaken")</p>
<p>@Umbraco.Field("workUndertaken")</p>
Run Code Online (Sandbox Code Playgroud)
有谁知道我哪里出错了?