Bootstrap CSS布局之列表

本文实例为大家分享了Bootstrap CSS布局中的列表布局,供大家参考,具体内容如下

列表

普通列表ul li 有序列表ol li 去点列表.list-unstyled 内联列表.list-inline 定义列表dl dt dd 水平定义列表dl-horizontal

rush:xhtml;"> ul,ol { margin-top: 0; margin-bottom: 10px; } ul ul,ol ul,ul ol,ol ol { margin-bottom: 0; }

普通列表ul li 有序列表ol li 去点列表class=”list-unstyled”

rush:css;"> //源码 .list-unstyled { padding-left: 0; list-style: none; }

内联列表class=”list-inline”

li { display: inline-block; padding-right: 5px; padding-left: 5px; }

定义列表dl dt dd

rush:css;"> dl { margin-top: 0; margin-bottom: 20px; } dt,dd { line-height: 1.42857143; } dt { font-weight: bold; } dd { margin-left: 0; }

水平定义列表class=”dl-horizontal”

rush:css;"> @media (min-width: 768px) { .dl-horizontal dt { float: left; width: 160px; overflow: hidden; clear: left; text-align: right; //显示省略符号来代表被修剪的文本 text-overflow: ellipsis; white-space: Nowrap; } .dl-horizontal dd { margin-left: 180px; } }

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持编程之家。

相关文章

Bootstrip HTML 查询搜索常用格式模版 <form class=&...
如何在按钮上加红色数字 您可以使用Bootstrap的badge组件来在...
要让两个按钮左右排列,你可以使用 Bootstrap 的网格系统将它...
是的,可以将status设置为布尔类型,这样可以在前端使用复选...
前端工程师一般用的是Bootstrap的框架而不是样式,样式一般自...
起步导入:<linkrel="stylesheet"href="b...