2016-12-08 9 views
1

私はの列を垂直方向に整列しようとしていますは、ブートストラップ3.3.7 using flexboxの行内に並んでいます。行の最小高さは62pxでなければなりません。IEのエッジでFlexboxと垂直方向の整列が機能しない

私は3つのの列を持っています。 1つの列(.title)には常にテキストが含まれており、他の2つは時々hidden or emptyです。何があっても、それらは常に列の中で垂直に並べられるべきです。

私はこのHTML持っている:それはChromeとFirefoxで働いてではなく、IEのエッジでい

.titlebar { 
 
    border: 1px solid red; 
 
    font-size: 21px; 
 
    line-height: 1.2em; 
 
    min-height: 62px; 
 
    overflow: hidden; 
 
    margin-left: 0; 
 
    margin-right: 0; 
 
    display: -webkit-box; 
 
    display: -webkit-flex; 
 
    display: -ms-flexbox; 
 
    display: flex; 
 
    -webkit-box-orient: vertical; 
 
    -webkit-box-direction: normal; 
 
    -webkit-flex-direction: column; 
 
    -ms-flex-direction: column; 
 
    flex-direction: column; 
 
    -webkit-box-pack: center; 
 
    -webkit-justify-content: center; 
 
    -ms-flex-pack: center; 
 
    justify-content: center; 
 
} 
 
.titlebar .title { 
 
    -webkit-box-pack: center; 
 
    -webkit-justify-content: center; 
 
    -ms-flex-pack: center; 
 
    justify-content: center; 
 
    -webkit-box-align: center; 
 
    -webkit-align-items: center; 
 
    -ms-flex-align: center; 
 
    align-items: center; 
 
    font-size: 21px; 
 
} 
 
.titlebar .byline { 
 
    font-size: 16px; 
 
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/> 
 
<div class="container"> 
 
    <div class="row titlebar"> 
 
    <div class="col-sm-8 col-md-9 col-sm-offset-4 col-md-offset-3 title">Title</div> 
 
    <div class="col-sm-8 col-md-9 col-sm-offset-4 col-md-offset-3 byline"></div> 
 
    <div class="col-sm-12 visible-xs-block titlebar-gradient"></div> 
 
    </div> 
 
</div>

を。 See Bootply here。私は何が欠けていますか?

答えて

関連する問題