Skip to content

Instantly share code, notes, and snippets.

@false-git
Created April 25, 2014 05:59
Show Gist options
  • Save false-git/11279030 to your computer and use it in GitHub Desktop.
Save false-git/11279030 to your computer and use it in GitHub Desktop.
以下のhtmlをIEで表示して、ボタンにカーソルを合わせるとレイアウトが変わる
<html>
<body>
<div><h1>this is h1</h1></div>
<div>this is contents.</div>
<form>
<input type="submit" value="button">
</form>
</body>
</html>
@false-git
Copy link
Author

IEの Developer Tools で見ると、h1の上下には 21.44ずつのMarginがあり、h1を囲むdivの上下にはない。
ページ表示直後は、h1のMarginの下にthis is contents.が表示されるが、ボタンにマウスオーバーするとh1のMarginが無視(?)されるようになる?

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