【发布时间】:2018-05-31 02:00:59
【问题描述】:
我已经按照这个问题的答案设置了我的字体:font-face not working on mobile
我是这样设置的:
@font-face {
font-family: 'SF Distant Galaxy';
src: url('./files/SFDistantGalaxy.eot');
src: url('./files/SFDistantGalaxy.eot?#iefix') format('embedded-opentype'),
url('./files/SFDistantGalaxy.woff2') format('woff2'),
url('./files/SFDistantGalaxy.woff') format('woff'),
url('./files/SFDistantGalaxy.ttf') format('truetype'),
url('./files/SFDistantGalaxy.svg#SFDistantGalaxy') format('svg');
font-weight: normal;
font-style: normal;
}
这里正在使用它:
#title {
font-family: 'SFDistantGalaxy';
letter-spacing: 3.3px;
text-align: center;
color: #f8e71c;
font-size: 95px;
}
当我在浏览器上打开它时,它加载得很好。但是当我在手机上打开它时,它显示的是 Times New Roman。
这里是网站: http://starwarsplanets.com/
我希望得到任何反馈!谢谢!
【问题讨论】:
标签: ios css cross-browser mobile-safari font-face