最初框是这样对齐的,其中所有框都具有flex属性。 我希望它是对齐的,例如,这是用于导航栏对齐。 我尝试过flex-direction: column, 当屏幕尺寸小于特定像素时,将出现汉堡条 example, after the screen shrink to <800px The desktop resolution @media only screen and (max-width: 1035px) {
.line {
display: none;
}
.logo,
.nav-links li a,
.button {
/*displa
我一直在绞尽脑汁地在css中创建垂直对齐,使用下面的代码
.base{
background-color:green;
width:200px;
height:200px;
overflow:auto;
position:relative;
}
.vert-align{
padding-top:50%;
height:50%;
}
<!-- and used the following div structure. -->
<div class="base">