我正在使用 Bootstrap 4.3.1 并尝试使用卡片创建视图。我遇到的问题是卡片在 chrome 和其他浏览器中显示得非常好,而在 Internet Explorer 11 中显示不正确
<div class="row">
<div class="col-sm-4 pt-3 pb-3">
<div class="card card-body bg-light">
<h2>Heading</h2>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis pharetra codeply varius quam sit amet vulputate.
<hr />
<div class="row">
<span class="pl-2">
<i class="far fa-clock"></i>
</span>
<span class="ml-auto pr-2 text-success">
<i class="far fa-check-circle"></i>
Complete
</span>
</div>
</div>
</div>
<div class="col-sm-4 pt-3 pb-3">
<div class="card card-body bg-light">
<h2>Heading</h2>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis pharetra codeply varius quam sit amet vulputate.
<hr />
<div class="row">
<span class="pl-2">
<i class="far fa-clock"></i>
</span>
<span class="ml-auto pr-2 text-success">
<i class="far fa-check-circle"></i>
Complete
</span>
</div>
</div>
</div>
<div class="col-sm-4 pt-3 pb-3">
<div class="card card-body bg-light">
<h2>Heading</h2>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis pharetra codeply varius quam sit amet vulputate.
<hr />
<div class="row">
<span class="pl-2">
<i class="far fa-clock"></i>
</span>
<span class="ml-auto pr-2 text-success">
<i class="far fa-check-circle"></i>
Complete
</span>
</div>
</div>
</div>
<div class="col-sm-4 pt-3 pb-3">
<div class="card card-body bg-light">
<h2>Heading</h2>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis pharetra codeply varius quam sit amet vulputate.
<hr />
<div class="row">
<span class="pl-2">
<i class="far fa-clock"></i>
</span>
<span class="ml-auto pr-2 text-success">
<i class="far fa-check-circle"></i>
Complete
</span>
</div>
</div>
</div>
</div>
您可以在图像中看到我在 chrome 中获得正确的输出,而在 IE 中它被挤出。
IE 11 输出