• 请不要在回答技术问题时复制粘贴 AI 生成的内容
sneezry
V2EX  ›  程序员

css 中能不能将 font-size 设置成相对父系 width

  •  
  •   sneezry ·
    Sneezry · Feb 22, 2014 · 3383 views
    This topic created in 4568 days ago, the information mentioned may be changed or developed.
    3 replies    1970-01-01 08:00:00 +08:00
    P233
        1
    P233  
       Feb 22, 2014 via Android
    用 fitText flowType 等插件吧,或者 vh vm 等新单位,兼容性不好
    loading
        2
    loading  
       Feb 22, 2014 via iPhone
    只能反过来
    .father {width:10em}

    如果用js,当我没说。

    想问下场景?
    iinterest
        3
    iinterest  
       Feb 23, 2014
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5711 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 03:14 · PVG 11:14 · LAX 20:14 · JFK 23:14
    ♥ Do have faith in what you're doing.