javascript - 在 IExplorer 中检测字体下载权限

标签 javascript internet-explorer font-face embedded-fonts

我在 HTML 页面中使用动态字体 (font-face)。

我看到有时候,IExplorer 用户没有权限下载字体。这是安全设置的选择。

如果浏览器允许字体下载,是否可以使用 Javascript 进行检测?在这种情况下,我可以显示警报,或者我可以使用替代技术,如 Cufón。

谢谢!!!

最佳答案

Web Font Loader会附上Events到您的 html 标签

对我来说非常好。

关于javascript - 在 IExplorer 中检测字体下载权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15023605/

相关文章:

javascript - 使用 jasmine 模拟对服务器的调用

javascript - 如何在 angularjs 的 Controller 内为 Date 方法创建模拟

html - IE7 中的 UL 对齐问题

javascript - 为什么这个 jQuery 函数在 IE8-9 中抛出错误?

internet-explorer - 如何防止 Internet Explorer 连接超时?

javascript - 缓慢/ react 迟钝/卡住的 typekit 脚本

javascript - 在 Vue.js 中,组件可以检测插槽内容何时更改

javascript - iPhone : Fixed position Div invisible

css - 将新字体添加到 TinyMCE 字体选项

html - 如何向网站添加一些非标准字体?