Chrome not respecting rem font size on body tag?

前端 未结 7 871
北恋
北恋 2020-12-08 22:37

I\'ve taken to using rem\'s to size fonts in recent projects, then using px as a fallback for older versions of IE.

I\'ve also been setting a font

7条回答
  •  温柔的废话
    2020-12-08 23:00

    The easiest solution that I have found is to simply change the body definition to

    body {
        font-size: 1.4em;
    }
    

    Because it is the body, you don't have to worry about compounding – just use rems everywhere else.

提交回复
热议问题