开发者

Why does Chrome/WebKit override a body CSS declaration in a table element? [duplicate]

This question already has answers here: Closed 11 years ago.

Possible Duplicate:

CSS - table not using body font size even though I havent set the table font size explicitly

CSS declaration: body { font-size: .75em; }

HTML:

<body开发者_如何转开发>

<table>
    <tbody>
        <tr>
            <td>Hello</d>
        </tr>
    </tbody>
</table>

<p>Helllo.</p>

</body>

In WebKit (Chrome, Safari) there's a user agent CSS override for the table element of font-size: medium which makes the table bigger. I think this is obnoxious and OK I can just write the CSS declaration like body, table { font-size: .75em; } but I'm hoping someone can 'splain the logic of it.

Thanks.

Update eh, I guess it was a DOCTYPE-less quirks mode thing but still, that's obnoxious, isn't it?


There's a setting in Chrome for a minimum font size...could that be anything to do with it? See this long discussion on the subject.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜