Skip to content

Instantly share code, notes, and snippets.

@tarot
Created August 14, 2014 13:12
Show Gist options
  • Save tarot/96bc73a9d6f16a0ebb65 to your computer and use it in GitHub Desktop.
Save tarot/96bc73a9d6f16a0ebb65 to your computer and use it in GitHub Desktop.
なんでtableのフォントサイズが16pxになるの???
<html>
<head>
<style type="text/css">
body { font-size: 14px; }
</style>
</head>
<body>
<table>
<tbody>
<tr>
<td>16px 16px 16px</td>
</tr>
</tbody>
</table>
<p>14px 14px 14px</p>
</body>
</html>
@tarot
Copy link
Author

tarot commented Aug 15, 2014

doctypeのせいでした!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment