css - 我无法在我的 wordpress 网站上使用@font-face 支持

标签 css wordpress font-face

/*
@font - face {
    font - family: 'MVFaseyha';
    src: url('http://www.mvyouth.mv/live/wp-content/themes/mvyouth_2013/stylesheets/fonts/MVFaseyha.otf') format('truetype');
    font - weight: normal;
    font - style: normal;
} */

这是我用来嵌入字体的代码。我使用的是 Dhivehi 语言(马尔代夫)字体,我猜其中包括 unicode 字符*。我对 CSS 等了解不多。

最佳答案

我猜问题出在 src 路径上。这取决于您的字体文件夹所在的位置,但如果您的 @font-face 语句在您的 css 文件中也位于在样式表中。

关于css - 我无法在我的 wordpress 网站上使用@font-face 支持,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17385280/

相关文章:

css - 我想使用外部字体,但似乎没有作用

javascript - 关闭javascript确认框后如何从按钮上移除焦点

css - 从 png Sprite 中仅重复 1px 作为 div 的背景

css - 计算 font-size 的继承值

css - 在何处将自定义样式应用于重力形式

php - 在 WooCommerce 中过滤产品类别存档页面

css - 字体错误 : Failed to decode downloaded font invalid version tag

performance - CSS 媒体查询 : Defining font-face inside a certain min to max range - is this font loaded outside?

html - 我能否以编程方式确定一系列 CSS 类的属性值?

css - WordPress 85% 宽度内容分区背景