【发布时间】:2021-09-09 04:30:43
【问题描述】:
我正在尝试制作一个看起来像这样的横幅
在移动端应该是这样的
我在这个项目中使用引导程序。我可以在 web 视图中实现这一点,但在移动设备中效果不佳。
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous">
<div style="background-color:#BBD4FD">
<div class="container">
<div class="row block">
<div class="row-md align-items-center pt-4" style="height: 100px;">
<h1 class="text-center" style="letter-spacing: .1rem; font-size: 4rem; color:#183C77">Know how DrinkPrime solves the problem</h1>
</div>
<div class="row">
<div class="col-md align-items-center one" style=" height: 400px; width: 100%;">
<div class="text-center">One of three columns</div>
</div>
<div class="col-md one" style="height: 400px; width: 100%;">
<div class="text-center">One of three columns</div>
</div>
<div class="col-md " style="height: 400px; width: 100%;">
<div class="text-center">One of three columns</div>
</div>
</div>
</br>
</div>
</div>
</div>
如何使这个响应式和看起来像移动视图?
【问题讨论】:
标签: html css bootstrap-4 responsive-design