3
私は、この行の他の要素と同じ高さの黄色の要素をflex
を使用して作成しようとしていますが、この設計では理解できません。 li
要素は完全な高さにあることはありません。CSS Flexを使用して要素の高さを均等にする
私が話していることを確認するには、コードスニペットを実行します。 ありがとうございました!
html, body {
height: 100%;
margin: 0;
padding: 0;
}
#main {
width: 90%;
padding: 0;
margin: 0 auto;
font-size: 0;
}
.wrapper {
display: flex;
width: 100%;
height: 100%;
flex-direction: column;
}
.header {
background: yellow;
flex: 1;
font-size: 13px;
width: 100%;
}
.body {
font-size: 13px;
border: 1px solid orange;
background: lightblue;
width: 100%;
}
.liWrapper {
display: inline-flex;
width: 25%;
min-width: 25%;
margin: 10px 0 0 0;
padding: 0;
}
<div id="main">
<div class="liWrapper">
<div class="wrapper">
<div class="header">Title fwef wef wef ef ewff wef fewf wef few few fwef ewf ewf w</div>
<div class="body">picture</div>
</div>
</div>
<div class="liWrapper">
<div class="wrapper">
<div class="header">Title fwef wef wef e</div>
<div class="body">picture</div>
</div>
</div>
<div class="liWrapper">
<div class="wrapper">
<div class="header">Title fwef wef wef ef ewff wef fewf wef few few fwef ewf ewf w</div>
<div class="body">picture</div>
</div>
</div>
<div class="liWrapper">
<div class="wrapper">
<div class="header">Title fwef wef wefwf ewf w</div>
<div class="body">picture</div>
</div>
</div>
<div class="liWrapper">
<div class="wrapper">
<div class="header">Title fwef wef wef ef ewfff wefe wfew f wef fewf wef few few fwef ewf ewf w</div>
<div class="body">picture</div>
</div>
</div>
<div class="liWrapper">
<div class="wrapper">
<div class="header">Title fwef wef</div>
<div class="body">Body</div>
</div>
</div>
</div>
http://stackoverflow.com/a/33815389/3597276 –