twitter-bootstrap-3 - Bootstrap 3:在移动设备上将两列行分成两列一列
问题描述
我目前有:
<div class="row">
<div class="col-xs-4" id="LocationWrapper">
<div class="FullWidth HorizontallyCentered">Select the location:</div>
<select id="ddlLocation"></select>
<span id="LocationNote">blablabla</span>
</div>
<div class="col-xs-8" id="GraphsOptionsWrapper">
<div class="FullWidth HorizontallyCentered">Select the graph:</div>
</div>
</div>
这适用于桌面。然而,在移动设备上,这些柱子太小了,无法容纳所需的东西。在这种情况下,最好有两行(而不是一行两列),每行一列。
我怎么能在不复制内容的情况下做到这一点?内容有一些控件,如选择,在页面上应该是唯一的。
谢谢!
解决方案
我希望这个结构会对你有所帮助。
<div class="row">
<div class="col-sm-4" id="LocationWrapper">
<div class="FullWidth HorizontallyCentered">Select the location:</div>
<select id="ddlLocation"></select>
<span id="LocationNote">blablabla</span>
</div>
<div class="col-sm-8" id="GraphsOptionsWrapper">
<div class="FullWidth HorizontallyCentered">Select the graph:</div>
</div>
</div>
推荐阅读
- python - 在 OpenNMT 包中找不到文件 preprocessing.py
- c++ - 访问表面网格的属性图
- java - 在android上单击admob横幅后,无法在60秒内使用后退按钮
- javascript - 如何循环一个非常大的 2D 数组而不造成主要的性能影响?
- android - 如何在 Android Room CrossReference 实体中查询特殊“多对多关系”用例的数据?
- unity3d - 游戏对象在 z 轴上不正确地旋转
- dhall - Dhall Repl:如何获取记录类型的字段类型
- installshield - ISDEV 致命错误 1027 签名 .tmp 失败,禁用 SINGLE_EXE_IMAGE 签名
- flutter - 如何突出显示自定义底部应用栏图标并更改应用栏(顶部)标题文本颤动
- php - 无论搜索什么,MYSQL 搜索都会返回表中的所有结果