【发布时间】:2016-04-27 07:35:15
【问题描述】:
我只在 WordPress 中为 Internet Explorer 设置字体
所有字体都位于子主题的根目录中。
这是ie-only.css中的代码
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
@font-face {
font-family: 'open_sansregular';
src: url('opensans-regular-webfont.eot');
src: url('opensans-regular-webfont.eot?#iefix') format('embedded-opentype'),
url('opensans-regular-webfont.woff2') format('woff2'),
url('opensans-regular-webfont.woff') format('woff'),
url('opensans-regular-webfont.ttf') format('truetype'),
url('opensans-regular-webfont.svg#open_sansregular') format('svg');
font-weight: normal;
font-style: normal;
}
.text-highlight { border: 1px solid red; font-family:open_sansregular; }
}
您知道在子主题的根目录中找到字体系列的正确地址是什么吗?
感谢任何帮助。谢谢
【问题讨论】:
-
你的字体 opensans-regular-webfont.eot 在哪里安装?哪个目录?
-
嗨 Shoeb,opensans-regular-webfont.eot 在子主题内
-
需要检查它的来源然后只有我可以评论..
标签: php css wordpress internet-explorer fonts