C# 嵌入式字体在IE上不起作用

C# 嵌入式字体在IE上不起作用,c#,html,css,asp.net,font-face,C#,Html,Css,Asp.net,Font Face,为什么我的嵌入式字体不适用于IE 以下是我的CSS代码: body{} @font-face { font-family: 'JSeshFont'; src: url('fonts/JSeshFont.eot'); /* IE */ src: url('fonts/JSeshFont.eot?#iefix'); /* IE */ src: local('JSeshFont'), url('fonts/JSeshFont.ttf') format('truetype'); /* o

为什么我的嵌入式字体不适用于IE

以下是我的CSS代码:

body{}
@font-face {
  font-family: 'JSeshFont';
  src: url('fonts/JSeshFont.eot'); /* IE */
  src: url('fonts/JSeshFont.eot?#iefix'); /* IE */
  src: local('JSeshFont'), url('fonts/JSeshFont.ttf') format('truetype'); /* others */
}
@font-face {
  font-family: 'JameelNooriNastaleeqKasheeda';
  src: url('fonts/JameelNooriNastaleeqKasheeda.eot'); /* IE */
  src: url('fonts/JameelNooriNastaleeqKasheeda.eot?#iefix'); /* IE */
  src: local('Jameel Noori Nastaleeq Kasheeda'), url('fonts/JameelNooriNastaleeqKasheeda.ttf') format('truetype'); /* others */
}
以下是我的Asp.net C代码:

<html>
<head runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="/demo/style.css" />
    </head>
<body>
   ...
                        <asp:Label ID="Label1" runat="server" Text="بلا بلا بلا" Font-Names="JameelNooriNastaleeqKasheeda" Font-Size="XX-Large"></asp:Label>
</asp:TableCell>
                    <asp:TableCell ID="text2" runat="server" Font-Size="Large">
                        <asp:Label ID="Label2" runat="server" Text="Here's the complete solution with the embedcode of fontsquirrel. I don't know, what your "src: local" is good for - I've never seen it before.

@font-face {
font-family: 'JSeshFont';
src: url('fonts/JSeshFont.eot'); /* IE */
src: url('fonts/JSeshFont.eot?#iefix'), format('embedded-opentype'),
     url('fonts/JSeshFont.woff') format('woff'),
     url('fonts/JSeshFont.ttf') format('truetype'),
     url('fonts/JSeshFont.svg#JSeshFont') format('svg');
font-weight: normal;
font-style: normal;
}
...
下面是使用fontsquirrel的嵌入代码的完整解决方案。我不知道,你的src:local有什么好处-我以前从未见过


如果您没有完整的字体woff等,您可以使用生成它们。

这里是指向页面的链接:related:和:供参考,通常在问题中包含错误消息很有用:CSS3114:@font-face失败的OpenType嵌入权限检查。权限必须是可安装的。@TZHX,嗯,什么?如何包括那个?我对asp.net很在行…是的,很有效。。。但是现在IE有UTF-32的问题:这里是我的web配置:。。。我从来没有使用过UTF-32,所以我不能给你任何关于这一点的提示,对不起,你知道如何向IE每个版本的每个用户显示消息吗。您的污点不起作用,因为它显示我正确,唯一的原因是我安装了字体CSS3111:@font-face遇到未知错误。