Mozilla 3.0.8 and Chrome height in em bug workaround

后端 未结 1 1059
被撕碎了的回忆
被撕碎了的回忆 2021-01-07 08:54

I\'ve got a textarea inside a div:

<
相关标签:
1条回答
  • 2021-01-07 09:56

    The textarea is using a different font by default, so the size is different (as ems relate to the text size).

    Add this:

    #textareawrapper textarea { font-size: 100%; font-family: inherit; }
    

    Tested & working in FF3

    0 讨论(0)
提交回复
热议问题