【发布时间】:2018-08-15 18:59:39
【问题描述】:
我正在尝试对齐我的 .row - IE11 中以 y 轴为中心的元素,但它似乎不起作用。
我的 HTML:
<section class="home-section">
<div class="container home-section-inner d-flex">
<div class="row align-self-center">
<div class="offset-lg-1 col-lg-8 ">
<h1 class="approach-hero text-white">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor</h1>
<p class="approach-hero--quote text-muted">Quote Lorem Ipsum</p>
</div>
</div>
</div>
</section>
我的 CSS:
html,body {
min-height: 100%;
width: 100%;
}
.home-section {
height: calc(100vh - 30px);
width: calc(100% - 30px);
margin: 15px;
background: linear-gradient(rgba(31, 64, 120, 0.9), rgba(31, 64, 120, 0.9)),url(https://placeimg.com/1920/1080/arch) no-repeat center center;
background-size: cover;
}
.home-section .home-section-inner {
height: 100%;
width: 100%;
}
【问题讨论】:
标签: twitter-bootstrap internet-explorer flexbox bootstrap-4 internet-explorer-11