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

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

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

    如果用js,当我没说。

    想问下场景?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2154 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 02:26 · PVG 10:26 · LAX 18:26 · JFK 21:26
    ♥ Do have faith in what you're doing.