【发布时间】:2022-02-04 05:55:13
【问题描述】:
为什么标题部分比我证明内容时应有的高度高?
当我将 header__container 的 justify 内容设置为空格时,标题开始超出其边距。请帮忙。
header {
height: calc(100vh - 80px);
}
.header__container {
width: 100%;
max-width: 720px;
margin: 0 auto;
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-around;
}
<header>
<div class="header__container">
<div class="header__description">
<h1>Lebanon's most awarded online library platform</h1>
<h2>Find your dream book with <span class="purple">Library</span></h2>
</div>
<figure class="header__img--wrapper">
<img src="https://via.placeholder.com/200" alt="">
</figure>
</div>
</header>
【问题讨论】:
-
告诉我你正在等待的结果