Javascript 浏览器在asp.net中不支持我自己的字体

Javascript 浏览器在asp.net中不支持我自己的字体,javascript,html,css,asp.net,fonts,Javascript,Html,Css,Asp.net,Fonts,我想在我的.aspx中嵌入我自己的字体,但是google chrome和firefox不支持这种字体,而IE支持这种字体。让我知道如何在asp.net页面中嵌入字体 我的密码是 <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <title>Font</title> <style type="text/css"> .title {

我想在我的.aspx中嵌入我自己的字体,但是google chrome和firefox不支持这种字体,而IE支持这种字体。让我知道如何在asp.net页面中嵌入字体

我的密码是

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Font</title>

<style type="text/css">

.title
{
    @font-face 
{
    font-family: Mullai;
    src: url('F:\ASP\SAMP - Mullai.ttf')format("truetype");
}
}
</style>
</head>

</body>
<form id="form1" runat="server">
<div>
<table style="width: 100%;">
<tr>
<td style="width: 91px">&nbsp;</td>
<td align="center" style="width: 351px" class="title">தமிழ்<br /></td>
<td style="width: 91px">&nbsp;</td>
</tr>
</table>
</div>
</form>
</body>
</html>

字体
标题
{
@字体
{
字体系列:毛莱;
src:url('F:\ASP\SAMP-Mullai.ttf')格式(“truetype”);
}
}
தமிழ்

chrome和firefox不调用css类。让我知道有什么问题。提前感谢

我以前也遇到过类似的问题,它可能来自配置文件。

这里的路径是
src:url('F:\ASP\SAMP-Mullai.ttf')格式(“truetype”)是错误的。您应该在服务器中上载字体文件并使用相对字体paths@Tasos是浏览器不能接受本地路径??是的,物理路径在大多数情况下不起作用。但它在internet explorer上起作用。我在服务器上上传字体后也试过了,它不起作用。在chrome或其他浏览器中是否有显示格式???它是一个内部网应用程序。我想在局域网系统中显示字体。请参见此处的示例