我使用css属性font-family,将值Roboto设置为"Roboto Lt“。当我使用android mobile浏览页面时,font-family是work,但在iphone5s上通过Safari浏览器浏览页面则不起作用。
有没有人有这个问题?
发布于 2014-05-08 10:41:16
Roboto包含在安卓系统中,但不是iOS包含的字体。你需要在Google字体中包含该字体。
发布于 2014-06-20 20:44:22
我希望这个答案能帮助我遇到这个问题的其他人。这是我的解决方案,你可以按照步骤来做。
@font-face { font-family:'Roboto';源: url('fonts/roboto_regular_macroman/Roboto-Regular-webfont.eot');src: url('fonts/roboto_regular_macroman/Roboto-Regular-webfont.eot?#iefix')格式(‘embedded-opentype’)、url('fonts/roboto_regular_macroman/Roboto-Regular-webfont.woff')格式(‘woff’)、url('fonts/roboto_regular_macroman/Roboto-Regular-webfont.ttf')格式(‘truetype’)、url('fonts/roboto_regular_macroman/Roboto-Regular-webfont.svg#RobotoRegular')格式(‘svg’);字体粗细:正常;font-style:正常;
}
毕竟,你可以直接使用网页中的字体,就像这样。body{font-family:'Roboto',san serif;}
好吧,如果你不明白我想说的是什么,你可以在这个链接上看到原始页面:http://www.maketecheasier.com/use-google-roboto-font-everywhere/。
https://stackoverflow.com/questions/23531642
复制相似问题