问题描述
已为我提供了许多设计师希望放入我的网站的字体。该网站位于example.com/SITE_DIRECTORY/wordpress_ROOT。
使用字体声明,我已经在网站中实现了这样的字体:
/* Fonts */
@font-face {
font-family: "Circular";
src: url('/wp-content/themes/clickiest/fonts/Circular-Std-Bold.otf') format('opentype');
src: url('/wp-content/themes/clickiest/fonts/circular_bold.woff2') format('woff2'),url('/wp-content/themes/clickiest/fonts/circular_bold.woff') format('woff'),url('/wp-content/themes/clickiest/fonts/circular_bold.ttf') format('truetype');
font-weight: 700;
font-style: normal;
}
@font-face {
font-family: "Circular";
src: url('/wp-content/themes/clickiest/fonts/Circular-Std-Medium.otf') format('opentype');
src: url('/wp-content/themes/clickiest/fonts/circular_medium.woff2') format('woff2'),url('/wp-content/themes/clickiest/fonts/circular_medium.woff') format('woff'),url('/wp-content/themes/clickiest/fonts/circular_medium.ttf') format('truetype');
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: "Proximanova";
src: url('/wp-content/themes/clickiest/fonts/proximanova_bold.woff2') format('woff2');
font-weight: 700;
font-style: normal;
}
@font-face {
font-family: "Proximanova";
src: url('/wp-content/themes/clickiest/fonts/pproximanova_semibold.woff2') format('woff2');
font-weight: 600;
font-style: normal;
}
@font-face {
font-family: "Proximanova";
src: url('/wp-content/themes/clickiest/fonts/proximanova_regular.woff2') format('woff2');
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: "Proximanova";
src: url('/wp-content/themes/clickiest/fonts/proximanova_light.woff2') format('woff2');
font-weight: 300;
font-style: normal;
}
h1,h2,h3,h4,h5,h6 {
font-family: "Circular",Helvetica,Arial,sans-serif!important;
font-weight: bold;
margin: 0 0 20px 0;
}
body,p,a,input,textarea,button,input[type=text],input[type=submit] {
font-family: "Circular",sans-serif!important;
font-weight: normal;
}
/* END Fonts */
我可以看到CSS代表了我所写的内容,并且如果我导航到:
example.co.uk/wp-content/themes/clickiest/fonts/Circular-Std-Bold.otf
我的字体文件已下载。
为什么我的字体不显示?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)