下拉的@ font-face在ie8中不起作用

时间:2011-09-22 09:22:16

标签: asp.net internet-explorer-8 font-face

在使用@ font-face时,我遇到的问题就是当我要将字体从印地语转换为英语时,这在每个浏览器中都适用于每个数据控件。但对于下拉列表,这在IE8中并不好,但在其他浏览器中也不错。我正在以下列方式使用它:

1)在app_theme文件夹中

@font-face
{
    font-family: "MyCustomFont";
    src: url('../font/MFDEV010.ttf') format('truetype')
}
@font-face
{
    font-family: "MyFont";
    src: url('../font/MFDEV010.eot?iefix') format('eot')

}

.HindiSkin
{
    font-family: "MyFont", "MyCustomFont";
    font-size:17px;

}
.EngSkin
{
    font-family: Arial Unicode MS ;
    font-size:15px;

}

.InputSelect
{
   /*border: 1px solid #b0b0b0;*/
   font-family: verdana;
   font-size: 12px;
   color: #090908;
   font-weight: normal;
   width: 190px;
   padding:1px;
   height:25px;
}

.InputSelectHindi
{
   /*border: 1px solid #b0b0b0;*/
   font-family: "MyCustomFont","MyFont";
   font-size: 18px;
   color: #090908;
   font-weight: normal;
   width: 190px;
   padding:1px;
   height:30px;
}  

2)在皮肤文件中我包括:

<asp:DropDownList runat="server" cssclass="InputSelect" />
<asp:DropDownList SkinID="Blue" runat="server" cssclass="InputSelectHindi" />
页面上的

3)

on the page i have add the reference of the theme here like this:
StylesheetTheme="EnglishFontSkin"

注意:这在任何地方都可以正常工作但不是IE8,请给出解决方案。       thnx提前

1 个答案:

答案 0 :(得分:1)

IE不支持font-face中的TTF格式(根据this page)。也许这就是原因?

相关问题