Created
April 25, 2014 05:59
-
-
Save false-git/11279030 to your computer and use it in GitHub Desktop.
以下のhtmlをIEで表示して、ボタンにカーソルを合わせるとレイアウトが変わる
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<div><h1>this is h1</h1></div> | |
<div>this is contents.</div> | |
<form> | |
<input type="submit" value="button"> | |
</form> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
IEの Developer Tools で見ると、h1の上下には 21.44ずつのMarginがあり、h1を囲むdivの上下にはない。
ページ表示直後は、h1のMarginの下にthis is contents.が表示されるが、ボタンにマウスオーバーするとh1のMarginが無視(?)されるようになる?