v 站网页是怎么调用到手机系统字体的 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
ericwvi
V2EX    V2EX

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

  •  1
     
  •   ericwvi 73 天前 958 次点击
    这是一个创建于 73 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我用的是 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 条附言    73 天前

    补一下图

    补一下图

    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  
       73 天前
    bro ,你图了
    xtreme1
        2
    xtreme1  
       73 天前
    不应该抄 css 么
    ericwvi
        3
    ericwvi  
    OP
       73 天前
    补一下图
    ![补一下图]( 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
       73 天前
    用了这个就可以了 <html lang=zh-CN>