我有方向列Flexbox的想在這個codepenFlex的框方向柱
https://codepen.io/anon/pen/KaBNvN?editors=1100
<div class="container">
<div class="header">header</div>
<div class="content">
<div>Item 1</div>
<div>Item 2</div>
<div>Item 3</div>
<div>Item 4</div>
<div>Item 5</div>
<div>Item 6</div>
<div>Item 7</div>
<div>Item 8</div>
<div>Item 9</div>
<div>Item 10</div>
</div>
<div class="footer">footer</div>
</div>
div {
border: 1px solid;
}
.container {
display: flex;
flex-direction: column;
height: 300px;
width: 200px;
}
.container .content {
overflow-y: scroll;
display: flex;
flex-direction: column;
}
.footer {
height: 20px;
}
我想要的頁腳總是在底部。
我嘗試了justify-self:flex-end爲頁腳,但它不起作用。
非常感謝你:) – asv