Why is a table not using the body font size even though I haven't set the table font size explicitly?

前端 未结 5 1657
后悔当初
后悔当初 2020-12-30 19:24

I have a problem whereby I have set the body font-size to 11px, but tables display font at 16px. I have no idea whats causing this - I have been over the CSS and the output

5条回答
  •  盖世英雄少女心
    2020-12-30 19:54

    Make sure you have the DOCTYPE set correctly (W3C will have details) ...

    OR

    table {
       font-size: 1em;
    }

    And all will be well ;)

提交回复
热议问题