kstsca
V2EX  ›  问与答

css 字体大小等比例缩放 非JS 如何做到?

  •  
  •   kstsca · Oct 22, 2013 · 5028 views
    This topic created in 4774 days ago, the information mentioned may be changed or developed.
    6 replies  •  1970-01-01 08:00:00 +08:00
    raincious
    raincious
    Oct 22, 2013
    1
    整个页面字体同比利变换么?

    那么用em、%设定字符大小

    比如:font-size: 2em; 下一层:font-size: .9em?
    kstsca
    kstsca
    OP
    Oct 22, 2013
    2
    @raincious 我的意思 自适应我的浏览器窗口大小。
    detailyang
    detailyang
    Oct 22, 2013
    3
    @media ?
    kstsca
    kstsca
    OP
    Oct 22, 2013
    4
    @detailyang 无法兼容可恶额 IE6
    loading
    loading
    Oct 22, 2013
    5
    zoom:1.5;
    ghbjy1128
    ghbjy1128
    Oct 22, 2013
    6
    只能是@media query, IE8-6 可以使用JS hack,但是效果不是特别顺滑。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1705 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 16:18 · PVG 00:18 · LAX 08:18 · JFK 11:18
    ♥ Do have faith in what you're doing.