所以我在下面有我的問題。當另一個孩子有更大的字體大小時,使flexbox兒童填充100%身高
.app-main-header {
background-color: blue;
align-items: center;
display: flex;
justify-content: flex-end;
}
.app-main-header > div:first-child {
padding-right: 10px;
}
.app-main-header > div {
background-color: red;
height: 200%;
padding: 10px 0;
}
.app-main-header > div + div {
padding-left: 10px;
padding-right: 10px;
border-left: 1px solid grey;
}
.app-hamburger {
font-size: 25px;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="app-main-header">
<div>
About
</div>
<div>
Contact
</div>
<div class="app-hamburger">
<span class="glyphicon glyphicon-menu-hamburger"></span>
</div>
</div>
的About
Contact
和盒是作爲其font-size
更大相比較小到漢堡包圖標。無論如何可以使About
和Contact
箱子大小匹配漢堡而不增加font-size
?