html - 阿拉伯字体在 IE 11 中不起作用?

标签 html css fonts font-face arabic-support

我正面临阿拉伯字体的问题,它在 Mozilla 中正常工作,而 chrome nut 在 IE 11 中无法正常工作,我的代码在下面任何人都可以帮助我。

<!DOCTYPE html>
    <html>
    <head>
        <style type="text/css">
        @font-face {
           font-family: 'ArabicTwo_Bold';
           src: url('DroidKufi-Regular.eot?#iefix') format('embedded-opentype'),

                url('ArabicSans_Bold.ttf')  format('truetype'),
                url('DroidKufi-Regular.woff') format('woff'),
                 url('DroidKufi-Regular.svg#ArabicTwo_Bold') format('svg');
        }

        div , input {
         font-family: ArabicTwo_Bold;
        }


        </style>
    </head>
    <body>
        <input type='text' value='account 1 2 3' />
        <div> account  1 2 3 </div>
    </body>
    </html>

最佳答案

CSS

@font-face {
    font-family: 'arabicsansbold';
    src: url('arabicsans_bold-webfont.eot');
    src: url('arabicsans_bold-webfont.eot?#iefix') format('embedded-opentype'),
         url('arabicsans_bold-webfont.woff2') format('woff2'),
         url('arabicsans_bold-webfont.woff') format('woff'),
         url('arabicsans_bold-webfont.ttf') format('truetype'),
         url('arabicsans_bold-webfont.svg#arabicsansbold') format('svg');
    font-weight: normal;
    font-style: normal;

}

html

<!DOCTYPE>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" href="stylesheet.css" type="text/css" charset="utf-8" />
    <style type="text/css">
                    body{
                font-family: 'arabicsansbold';
                        }
        </style>
</head>

<body>
<div id="container">
    <div id="header">ArabicSans Bold     123456</div>


</div>
</body>
</html>

关于html - 阿拉伯字体在 IE 11 中不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47688677/

相关文章:

java - GridLayout 弄乱了我的标签

html - 文本输入元素内的 Font Awesome 图标

html - 如何删除 HTML/CSS 中的曲线

javascript - 如何根据文本长度使文本最适合?

html - CSS根据大小定位差异

css - (material-ui)将最大高度应用于<Select>子代

jquery - 如何修复左列数据表,如示例所示

jquery - 在 Stationary SIde Nav 中突出显示事件 anchor 链接

php - 为每个文件创建上传状态 JQuery 和 AJAX

ios - 如何使用动态大小更改 Swift 中 iOS 应用程序的字体?