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

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

  •  
  •   sneezry ·
    Sneezry · Feb 22, 2014 · 3288 views
    This topic created in 4495 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   ·   1367 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 16:51 · PVG 00:51 · LAX 09:51 · JFK 12:51
    ♥ Do have faith in what you're doing.