Skip to content

Instantly share code, notes, and snippets.

@azusa-tomita
Created September 3, 2019 09:17
Show Gist options
  • Save azusa-tomita/3c725e3ec792d24ea78dc67f3ee03c11 to your computer and use it in GitHub Desktop.
Save azusa-tomita/3c725e3ec792d24ea78dc67f3ee03c11 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<style id="jsbin-css">
*{margin:0;padding:0;box-sizing:border-box;vertical-align:top;}
body{
padding:1em;
}
ul{
display:flex;
justify-content:flex-end;
align-items:flex-end;
width:100px;
height:100px;
border:1px solid gray;
}
li{
display:block;
flex:0 0 auto;
width:40px;
border:1px solid tomato;
}
</style>
</head>
<body>
<h1>IE11でflexアイテムがコンテナからはみ出す場合、justify-contentが解除される</h1>
<ul>
<li>aaa</li>
</ul>
<br>
<ul>
<li>aaa</li>
<li>bbb</li>
<li>ccc</li>
</ul>
<br>
<ul>
<li><img src="https://dummyimage.com/25x50/fee/000" alt=""></li>
</ul>
<br>
<ul>
<li><img src="https://dummyimage.com/30x110/eef/000" alt=""></li>
</ul>
<h3>IE11のキャプチャ</h3>
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKEAAAIfCAMAAAAv0EyoAAAC7lBMVEX////u7v+AgIDU0Mj/7u7/Y0eHh4eJiYmDg4OFhYSOjo6Li4sAAABAQECbOwD//936+fmUlJ+b3P8AcL6/srLc29jBvbj/3Jv/vm/08/LHxcHp6edwvv/d5e7f0NCgn5z8/Pzw8PCys78AADva2NSflJTdnDvd3Nq+///Qzcc3h7x8enk6nNz//7+sqaO+cACE3PpyzfTi6vLLycQAAHAFKVk7ADuyuMHm///3+fz39/Xo7fTY1dE/jb8tfLCmpaRwAADu7ezh4eDQ0N9WhcFPf78AOpuUko7y9vzu8vh+0vTQ2OTk5ONpkciyr6mPmKjc//9az/zEzdp1q9Abect5lcpGk8dgisSqtcHEwbuwsLCgpq2pqaoVPZ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sjxrHcQz1CQQXXA53eZBzatiqh83EfozTInziuTOgFF0WDMHZdQvfunHdBmHqLYx+cq0f4284dpCAMAwEUtb1BrjBbj5H738kkFBEUW6TSqb5PUkpWDwqBLJoT7DaEhISEhISEhISEhITJhBubf/0vdUlfbvdb+vYXTm+7LBESPkZISLglwv8Vzp+3IpyXDjxJrQgznPUICQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkPFtbaJG0+VZMIa0SpJcodVq5j9rUcwqlZGqWNGKNOpc++kEUYJYamzf4Yr7mETZJbWCOilojlK9+FfS2H8AS7DSEhISEhISEhISEhISEhISEhISEhISEhISEhISEhIaG7ql7mripJkiRJkpS3G5oIk0KFqG3pAAAAAElFTkSuQmCC" alt="" border="1">
<script id="jsbin-source-css" type="text/css">*{margin:0;padding:0;box-sizing:border-box;vertical-align:top;}
body{
padding:1em;
}
ul{
display:flex;
justify-content:flex-end;
align-items:flex-end;
width:100px;
height:100px;
border:1px solid gray;
}
li{
display:block;
flex:0 0 auto;
width:40px;
border:1px solid tomato;
}</script>
</body>
</html>
*{margin:0;padding:0;box-sizing:border-box;vertical-align:top;}
body{
padding:1em;
}
ul{
display:flex;
justify-content:flex-end;
align-items:flex-end;
width:100px;
height:100px;
border:1px solid gray;
}
li{
display:block;
flex:0 0 auto;
width:40px;
border:1px solid tomato;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment