stane
V2EX  ›  问与答

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

  •  
  •   stane · Feb 29, 2012 · 6427 views
    This topic created in 5362 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
    run2
    Feb 29, 2012
    1
    不行,因为你这个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
    Sivan
    Mar 1, 2012
    2
    LZ 可以装一个 stylish 扩展。
    http://sobolev.us/stylish/
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2811 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 13:08 · PVG 21:08 · LAX 05:08 · JFK 08:08
    ♥ Do have faith in what you're doing.