国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Bulletproof @Font-Face 語(yǔ)法
P粉566048790
P粉566048790 2023-09-05 18:47:35
0
1
745
<p>我嘗試透過 FTP 安裝字體,但出現(xiàn) Bulletproof 字型語(yǔ)法錯(cuò)誤的錯(cuò)誤。請(qǐng)問我做錯(cuò)了什麼? </p> <p>編輯:我正在嘗試在 Jared 的幫助下修復(fù)程式碼,但現(xiàn)在仍在工作</p> <p> <pre class="brush:css;toolbar:false;">@font-face { font-family: 'Brasilero2018Free'; src: local("Brasilero2018Free"), url('https://www.flordeibez.org/wp-content/themes/fonts/Brasilero2018Free.otf'), url('https://www.flordeibez.org/wp-content/themes/fonts/Brasilero2018Free.eot') format('embedded-opentype'), url('https://www.flordeibez.org/wp-content/themes/fonts/Brasilero2018Free.woff') format('woff'), url('https://www.flordeibez.org/wp-content/themes/fonts/Brasilero2018Free.svg') format('svg'), url('https://www.flordeibez.org/wp-content/themes/fonts/Brasilero2018Free.ttf') format('truetype'); }</pre> </p> <p>我想要的:安裝沒有錯(cuò)誤的字體,並顯示在 Elementor Editor 中</p>
P粉566048790
P粉566048790

全部回覆(1)
P粉627136450

您的語(yǔ)法為:

src: url('some_url');
src: url('other_url');

您只需在每一行中重新定義字體的 URL。所以瀏覽器只會(huì)使用最後一個(gè),其他的都會(huì)被丟棄。正確的基本語(yǔ)法是:

@font-face {
  font-family: 'SomeFont';
  src: 
    local("SomeFont"),
    url('//host.tld/SomeFont.woff2') format('woff2'), 
    url('//host.tld/SomeFont.woff') format('woff'), 
    url('//host.tld/SomeFont.ttf') format('truetype');
}

如果您需要滿足舊瀏覽器的要求,您可以包含額外的字體格式。

注意:將錯(cuò)誤的 format('ttf') 改為 format('truetype'),感謝 @herrstrietzel

最新下載
更多>
網(wǎng)站特效
網(wǎng)站源碼
網(wǎng)站素材
前端模板