gpt4 book ai didi

php - 如何将 AddType 添加到 apache 服务器

转载 作者:行者123 更新时间:2023-12-04 04:52:00 25 4
gpt4 key购买 nike

我目前正在使用 Uniform Server,我想了解如何对其应用 AddType,以便在我在 PHP 页面上使用该字体时注册我的自定义字体(即 .otf 字体)。这是我通过 Google Chrome 通过控制台日志收到的消息,当我使用我的自定义字体时...

Resource interpreted as Font but transferred with MIME type application/x-font-otf: htt://.../mfont.otf



我做了一些挖掘,到目前为止想出了需要集成的以下行...
AddType application/x-font-otf

但我不知道该放在哪里,或者如何解决这样的问题。但是我想学!

感谢您的任何建议!

最佳答案

插入

AddType application/x-font-otf



如果您使用的是 xampp
C:/xampp/htdocs/xampp/apace/conf/httpd.conf

还是不行
 AddType  font/opentype

关于php - 如何将 AddType 添加到 apache 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17302169/

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