gpt4 book ai didi

javascript - Bootstrap :Grid not working in mobile view

转载 作者:太空宇宙 更新时间:2023-11-03 19:38:36 27 4
gpt4 key购买 nike

以下是我使用 bootstrap 3 的网站的网格结构。它在桌面版本中看起来不错,但是当我调整窗口大小时,它不会转到移动/选项卡 View 。这里有什么问题吗?在台式机上,我希望他们占行的 1/6,在移动设备上,占 1/3。

<div class="row" id="features">
<div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">
<div class="panel odd">
<img src="images/treatment.png" alt="Treatments">
<span>Treatments</span>
</div>
</div> <!--panel-->
<div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">
<div class="panel odd">
<img src="images/treatment.png" alt="Treatments">
<span>Treatments</span>
</div>
</div> <!--panel-->
<div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">
<div class="panel odd">
<img src="images/treatment.png" alt="Treatments">
<span>Treatments</span>
</div>
</div> <!--panel-->

<div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">
<div class="panel odd">
<img src="images/treatment.png" alt="Treatments">
<span>Treatments</span>
</div>
</div> <!--panel-->

<div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">
<div class="panel odd">
<img src="images/treatment.png" alt="Treatments">
<span>Treatments</span>
</div>
</div> <!--panel-->
</div><!--row-->

最佳答案

请检查您的 html head 部分是否包含元标记

<meta name="viewport" content="width=device-width, initial-scale=1">

关于javascript - Bootstrap :Grid not working in mobile view,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28145963/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com