2015-11-04 38 views
0

我的HTML頁面看起來像以下: -字體家族應用在iphone模擬器,但沒有appied在真正的iPhone設備?

<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的樣子如下: -

@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; 
    } 

我與Telerik的應用生成器工作在Visual Studio和字體的我的目錄結構是project_directory /字體/ ...

回答

1

嘗試更新它,以便它在引號中: .fonts {font-family:'Calibri'; }

+0

好的......謝謝你的回覆。通過更新它會在真正的iPhone設備中起作用嗎? –

+0

一旦你做到了,你就可以告訴我。目前沒有它,這是不正確的,但有時瀏覽器是寬容的,並仍然以你想要的方式工作,即使你使用格式不正確的代碼。 – partypete25

+1

ohhh..got it ...讓我先嚐試一下.... –

相關問題