V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
stane
V2EX  ›  问与答

请教 Safari 通过外挂 .css 指定网页字体的问题

  •  
  •   stane · 2012-02-29 19:42:31 +08:00 · 4962 次点击
    这是一个创建于 4440 天前的主题,其中的信息可能已经有所发展或是发生改变。
    {font-family: "Helvetica Neue", "Hiragino Sans GB";}

    使用了以上的代码。主要目的是想将网页的中文字体指定为 Hiragino Sans GB, 遇到英文的话使用 Helvetica Neue.

    我的问题是,这样一来是不是相当于强制指定了所有的网页?
    有没有方法让其他英文网页保留自定字体?
    如 Apple 官网仍然显示 Lucida Grande, NYTimes 仍旧显示衬线字体?
    2 条回复    1970-01-01 08:00:00 +08:00
    sobigfish
        1
    sobigfish  
       2012-02-29 21:20:31 +08:00
    不行,因为你这个css本来就无效..
    html, body, div, span, applet, object, iframe, h1, h2, h3,
    h4, h5, h6, p, blockquote, pre, a, abbr, acronym,
    address, big, cite, code, del, dfn, em, font, img, ins,
    kbd, q, s, samp, small, strike, strong, sub, sup, tt,
    var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend,
    table, caption, tbody, tfoot, thead, tr, th, td{font-family: "Helvetica Neue", "Hiragino Sans GB" !important;}
    Sivan
        2
    Sivan  
       2012-03-01 15:31:20 +08:00
    LZ 可以装一个 stylish 扩展。
    http://sobolev.us/stylish/
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2668 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 02:09 · PVG 10:09 · LAX 19:09 · JFK 22:09
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.