答案 0 :(得分:0)
您可以结合使用justify-content: space-between
和text-align: right
到readmore按钮来实现此目的。
结果是:
.card {
background: #ddd;
margin: 1rem;
padding: 2rem;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.child-2 {
text-align: right;
}
.child {
background: #eee;
padding: 1rem;
}
<div class="card">
<div class="child">
<h1>Article Awesome</h1>
<p>
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Ratione inventore, dolor dolorem vero, tenetur rerum tempora autem repudiandae deleniti rem sunt perferendis quasi dolore voluptatum fugit quisquam asperiores exercitationem. Exercitationem?
</p>
</div>
<div class="child child-2">Read More ...</div>
</div>
请注意,您可以为存储卡设置任意高度,并使用底部的readmore按钮对其进行相应缩放。