V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
sneezry
V2EX  ›  程序员

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

  •  
  •   sneezry ·
    Sneezry · 2014-02-22 13:18:54 +08:00 · 2763 次点击
    这是一个创建于 3716 天前的主题,其中的信息可能已经有所发展或是发生改变。
    3 条回复    1970-01-01 08:00:00 +08:00
    P233
        1
    P233  
       2014-02-22 13:38:18 +08:00 via Android
    用 fitText flowType 等插件吧,或者 vh vm 等新单位,兼容性不好
    loading
        2
    loading  
       2014-02-22 13:40:25 +08:00 via iPhone
    只能反过来
    .father {width:10em}

    如果用js,当我没说。

    想问下场景?
    iinterest
        3
    iinterest  
       2014-02-23 13:17:07 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1005 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 19:44 · PVG 03:44 · LAX 12:44 · JFK 15:44
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.