首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >字体系列在iphone模拟器中应用,但在真实的iphone设备中不应用?

字体系列在iphone模拟器中应用,但在真实的iphone设备中不应用?
EN

Stack Overflow用户
提问于 2015-11-04 13:05:48
回答 1查看 148关注 0票数 0

我的html页面如下所示:

代码语言:javascript
复制
<div class="row">
   <p class="fonts"> am building a browser-based mobile app and I've decided    to use Bootstrap 3 as 
    the css framework for the design. Bootstrap 3 comes with a great "responsive" feature 
    in the navigation bar where it collapses automatically if it detects a specific "break 
    point" regarding the resolution of the browser. It works in a lot of situations</p>
</div>

我的css如下所示:

代码语言:javascript
复制
@font-face {
   font-family: 'Calibri';
        src: url('../fonts/Calibri.eot');
        src: url('../fonts/Calibri.eot?#iefix') format('embedded-opentype'),
        url('../font/Calibri.woff') format('woff'),
        url('../fonts/Calibri.ttf') format('truetype'),
        url('../fonts/Calibri.svg#svgFontName') format('svg');
    }

.fonts {
        font-family: Calibri;
        -moz-font-feature-settings: "liga=1, dlig=1";
        -moz-font-feature-settings: "liga","dlig";
        -ms-font-feature-settings: "liga","dlig";
        -o-font-feature-settings: "liga","dlig";
        -webkit-font-feature-settings: "liga","dlig";
        font-feature-settings: "liga","dlig";
        text-rendering: optimizeLegibility;
    }

我在visual studio中使用telerik app builder,我的font目录结构是project_ directory /fonts/...

EN

回答 1

Stack Overflow用户

发布于 2015-11-04 13:11:16

尝试更新它,使其包含在引号中:.fonts { font-family:'Calibri';}

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/33514089

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档