V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
ericwvi
V2EX  ›  V2EX

v 站网页是怎么调用到手机系统字体的

  •  1
     
  •   ericwvi · 7 小时 53 分钟前 · 247 次点击

    我用的是 Oppo 手机,图里圈出来的地方可以看到和系统字体一致,用的是 Chrome

    oppo

    我把 v 站的 font family 设置抄了一下,在手机 chrome 打开,没有效果 🤣

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
    </head>
    <style>
        body {
            font-family:"Helvetica Neue","Luxi Sans","Segoe UI","Hiragino Sans GB","Microsoft Yahei",sans-serif,"Apple Logo"
        }
    </style>
    <body>
        <p>123</p>
    </body>
    </html>
    

    有没有大佬解答一下

    第 1 条附言  ·  7 小时 22 分钟前

    补一下图

    补一下图

    css 和字体有关的好像就是这个

    
    body {
    min-width: 820px;
    font-family: "Helvetica Neue", "Luxi Sans", "Segoe UI", "Hiragino Sans GB", "Microsoft Yahei", sans-serif, "Apple Logo";
    }
    
    
    ntedshen
        1
    ntedshen  
       7 小时 43 分钟前
    bro ,你图冇了
    xtreme1
        2
    xtreme1  
       7 小时 39 分钟前
    不应该抄 css 么
    ericwvi
        3
    ericwvi  
    OP
       7 小时 26 分钟前
    补一下图
    ![补一下图]( https://raw.githubusercontent.com/EricWvi/chat-toc/refs/heads/main/temp.jpg)

    css 和字体有关的好像就是这个
    ```css

    body {
    min-width: 820px;
    font-family: "Helvetica Neue", "Luxi Sans", "Segoe UI", "Hiragino Sans GB", "Microsoft Yahei", sans-serif, "Apple Logo";
    }

    ```
    ericwvi
        4
    ericwvi  
    OP
       7 小时 10 分钟前
    用了这个就可以了 <html lang=zh-CN>
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1035 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 17:27 · PVG 01:27 · LAX 10:27 · JFK 13:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.