V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
stane
V2EX  ›  问与答

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

  •  
  •   stane · Feb 29, 2012 · 5960 views
    This topic created in 5174 days ago, the information mentioned may be changed or developed.
    {font-family: "Helvetica Neue", "Hiragino Sans GB";}

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

    我的问题是,这样一来是不是相当于强制指定了所有的网页?
    有没有方法让其他英文网页保留自定字体?
    如 Apple 官网仍然显示 Lucida Grande, NYTimes 仍旧显示衬线字体?
    2 replies    1970-01-01 08:00:00 +08:00
    run2
        1
    run2  
       Feb 29, 2012
    不行,因为你这个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  
       Mar 1, 2012
    LZ 可以装一个 stylish 扩展。
    http://sobolev.us/stylish/
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2501 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 07:03 · PVG 15:03 · LAX 00:03 · JFK 03:03
    ♥ Do have faith in what you're doing.