twitter-bootstrap - 如何防止 Bootstrap DD DT 下降到下一行?
问题描述
我有以下代码,其中 DD DT 在同一行:
<dl class="row">
<dt class="col-sm-2">Arahat</dt>
<dd class="col-sm-10">The "Perfected One", who has overcome The Three Poisons of Desire, Hatred and Ignorance. </dd>
<dt class="col-sm-2">Bodhi</dt>
<dd class="col-sm-10">Awakened wisdom.</dd>
<dt class="col-sm-2">Zen</dt>
<dd class="col-sm-10">Meditative absorption in which all dualistic distinctions are eliminated.</dd>
</dl>
在移动屏幕上,它会折叠到另一个下方。我怎样才能防止这种情况?
解决方案
而不是 class="row" 使用 class="dl-horizontal" 还从所有 DD 和 DT 标签中删除 col-sm 并使用 Bootstrap 3
推荐阅读
- android - 应用程序在发布版本上崩溃:ReferenceError:找不到变量
- c# - C# 表单无需登录即可打开
- time-series - 使用 INTO 语句时有没有办法指定字段键?
- django - 用户更改密码后如何在 Django 中重置 JWT 令牌?
- python - 将小部件应用于 RadioField 的 WTForms
- javascript - 根据reactjs中的条件将css添加到现有应用的css?
- javascript - 子进程关闭时重新启动相同的功能
- .net - 如何使用.Net MVC将上传的图像保存在数据库中并在视图中显示
- excel - 查找工作表中的总行数和总列数 - Microsoft Graph
- excel - 通过即时调整大小和调整在纸张之间复制图像