gpt4 book ai didi

html - css - 在 ie11 中使用自定义字体时阿拉伯字符错误

转载 作者:行者123 更新时间:2023-11-28 07:25:53 24 4
gpt4 key购买 nike

我正在使用自定义:

@font-face {
font-family: "BYekan";
src: url(fonts/Yekan.eot);
src: url(fonts/Yekan.eot?#iefix) format("embedded-opentype"), url(fonts/Yekan.woff) format("woff"), url(fonts/Yekan.ttf) format("truetype"), url(fonts/Yekan.svg#BYekan) format("svg");
font-weight: normal;
font-style: normal
}
body,*{
font-family:BYekan,"BYekan",tahoma,Arial !important;

}

它在每个浏览器中都能正常工作,但在 IE 11 中。它非常糟糕,根本不可读。

如果用户代理浏览器是 IE 11,我想使用系统默认字体。

当用户使用 IE 11 进入我的网站时,如何使用其他字体?

谢谢。

最佳答案

<!--[if IE]>
<link rel="stylesheet" type="text/css" href="css_IE.css" />
<![endif]-->

<!--[if !IE]><!-->
<link rel="stylesheet" type="text/css" href="css_not_IE.css" />
<!--<![endif]-->

然后在 css_IE.css 中使用系统默认字体,在 css_not_IE.css 中使用自定义字体

关于html - css - 在 ie11 中使用自定义字体时阿拉伯字符错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31823450/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com