<kbd id="9plqc"><label id="9plqc"></label></kbd>

        <th id="9plqc"></th>
        1. <center id="9plqc"><video id="9plqc"></video></center>
          <sub id="9plqc"><form id="9plqc"><pre id="9plqc"></pre></form></sub>
          <nav id="9plqc"><form id="9plqc"><legend id="9plqc"></legend></form></nav>
          自定義字體 您所在的位置:網(wǎng)站首頁 屬兔的和屬馬的婚配嗎 自定義字體

          自定義字體

          2024-07-09 11:22| 來源: 網(wǎng)絡(luò)整理| 查看: 265

          # 自定義字體

          主題使用了以下五個(gè) CSS Variablesopen in new window 來定義字體:

          :root{ --sys-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Droid Sans", "Helvetica Neue"; --zh-font-family: "PingFang SC", "Hiragino Sans GB", "Droid Sans Fallback", "Microsoft YaHei"; --base-font-family: "Lato", var(--sys-font-family), var(--zh-font-family); --code-font-family: Menlo, Monaco, Consolas, "Courier New"; --article-font-family: var(--base-font-family); } 123456789

          默認(rèn)加載open in new window了 Lato 這個(gè)英文字體。中文字體的定義在 --zh-font-family 這個(gè)變量里。

          可以在頁面頭部 / 底部插入 標(biāo)簽來覆蓋這些變量,參考「修改主題open in new window」

          # 例子:給文章加上思源宋體

          我博客文章使用的是思源宋體open in new window(沒有內(nèi)置在主題里)。

          在站點(diǎn)根目錄新建文件 layouts/partials/head/custom.html, 內(nèi)容如下:

          :root { --article-font-family: "Noto Serif SC", var(--base-font-family); } (function () { const customFont = document.createElement('link'); customFont.; customFont.type = "text/css"; customFont.rel = "stylesheet"; document.head.appendChild(customFont); }()); 1234567891011121314151617 Edit this page open in new windowLast Updated: Contributors: Jimmy, Jimmy Cai


          【本文地址】

          公司簡介

          聯(lián)系我們

          今日新聞

          推薦新聞

          專題文章
            CopyRight 2018-2019 實(shí)驗(yàn)室設(shè)備網(wǎng) 版權(quán)所有
            黄色免费网站在线看,韩国精品在线观看,韩国美女一区二区,99国产热 三河市| 文化| 宁安市| 新平| 临安市| 阳新县| 格尔木市| 应用必备| 大城县| 观塘区| 溧阳市| 乌海市| 九江县| 吕梁市| 遂溪县| 龙游县| 双流县| 常山县| 舟曲县| 曲靖市| 望奎县| 屯昌县| 山东| 湖州市| 咸宁市| 织金县| 太原市| 苍南县| 龙南县| 龙泉市| 讷河市| 闸北区| 浦东新区| 杭锦后旗| 平定县| 甘孜县| 乐至县| 昭觉县| 澄迈县| 长葛市| 宣威市| http://444 http://444 http://444 http://444 http://444 http://444