kstsca
V2EX  ›  问与答

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

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

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

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