我正在尝试将 Google 字体嵌入 iPad 的 WebView 中。
如果我把它放在头上一切正常:
<link href='http://fonts.googleapis.com/css?family=Monofett' rel='stylesheet' type='text/css'>
html 是本地的,然后我需要在我的 iPad 中复制 CSS 和字体。
当我这样做时,字体不起作用:
html:
<link href='fonts/fonts.css' rel='stylesheet' type='text/css'>
字体/fonst.css:
@font-face {
font-family: 'Monofett';
font-style: normal;
font-weight: normal;
src: local('Monofett'), url('http://themes.googleusercontent.com/static/fonts/monofett/v1/94n9d8-lEEaOz-Sn4plHGPesZW2xOQ-xsNqO47m55DA.woff') format('woff');
}
我知道我仍在进行远程连接,但为什么不起作用?
网络在 Safari 和 Firefox 中看起来不错。