bootstrap排版
来源:互联网 发布:土豆视频mac版 编辑:程序博客网 时间:2024/05/22 04:51
添加内联子标题
(1)添加<small>
元素
(2)添加 .small class
<h1>我是标题1<small>我是副标题</small></h1>
引导主题副本
添加 class=”lead”,给段落添加强调文本,将得到更大更粗、行高更高的文本。
<h2>引导主体副本</h2><p class="lead">这是一个演示引导主体副本用法的实例。</p><p>这是一个普通的文本。</p>
强调
HTML 的默认强调标签 : <small>
(设置文本为父文本大小的 85%) <strong>
(设置文本为更粗的文本) <em>
(设置文本为斜体)
<small>缩小的字体</small><br><strong>文本更粗的字体</strong><br><em>设置文本为斜体</em><br><p class="text-left">向左对齐文本</p><p class="text-center">居中对齐文本</p><p class="text-right">向右对齐文本</p><p class="text-muted">这个是text-muted的强调色</p><p class="text-primary">这个是text-primary的强调色</p><p class="text-success">这个是text-success的强调色</p><p class="text-info">这个是text-info的强调色</p><p class="text-warning">这个是text-warning的强调色</p><p class="text-danger">这个是text-danger的强调色</p>
缩写
<abbr title="World Wide Web">WWW</abbr>
鼠标放上去会显示全称(title里面的值)
地址
使用 <address>
标签,您可以在网页上显示联系信息。
由于<address>
默认为 display:block;,您需要使用<br>
标签来为封闭的地址文本添加换行
<address> <strong>Some Company, Inc.</strong><br> 007 street<br> Some City, State XXXXX<br> <abbr title="Phone">P:</abbr> (123) 456-7890</address>
引用(Blockquote)
您可以在任意的 HTML 文本旁使用默认的 <blockquote>
。
可以添加一个 <small>
标签来标识引用的来源,使用 .pull-right class 向右对齐引用。
<blockquote> <p>这是一个默认的引用实例</p> </blockquote> <blockquote> 这是一个带有源标题的引用。 <small>Someone famous in <cite title="Source Title">Source Title</cite></small> </blockquote> <blockquote class="pull-right"> 这是一个向右对齐的引用。 <small>Someone famous in <cite title="Source Title">Source Title</cite></small></blockquote>
列表
<h4>未定义样式列表</h4> <ul class="list-unstyled"> <li>Item 1</li> <li>Item 2</li> </ul> <h4>内联列表</h4> <ul class="list-inline"> <li>Item 1</li> <li>Item 2</li> </ul> <h4>自定义列表</h4> <dl> <dt>Description 1</dt> <dd>Item 1</dd> <dt>Description 2</dt> <dd>Item 2</dd> </dl> <h4>水平的自定义列表</h4> <dl class="dl-horizontal"> <dt>Description 1</dt> <dd>Item 1</dd> <dt>Description 2</dt> <dd>Item 2</dd> </dl>
更多排版类
<abbr>
元素中的文本以小号字体展示,且可以将小写字母转换为大写字母 .blockquote-reverse 设定引用右对齐 .list-unstyled 移除默认的列表样式,列表项中左对齐 ( <ul>
和 <ol>
中)。 这个类仅适用于直接子列表项 (如果需要移除嵌套的列表项,你需要在嵌套的列表中使用该样式) .list-inline 将所有列表项放置同一行 .dl-horizontal 该类设置了浮动和偏移,应用于 <dl>
元素和 <dt>
元素中 .pre-scrollable 使<pre>
元素可滚动 scrollable 0 0
- Bootstrap 排版
- Bootstrap排版
- bootstrap(排版)
- Bootstrap排版
- bootstrap排版
- Bootstrap--排版
- Bootstrap排版
- Bootstrap排版
- Bootstrap 排版
- bootstrap排版、
- bootstrap排版
- Bootstrap 排版
- Bootstrap排版
- Bootstrap排版
- bootstrap-排版
- Bootstrap 排版
- 2.2Bootstrap排版
- Bootstrap-CSS-排版
- java程序设计基础(1)
- [Unity基础]项目专属文件夹
- 数据结构学习笔记--树
- 自定义转场动画(二)
- 1002. 写出这个数 (20)
- bootstrap排版
- git学习
- FATAL: the database system is starting up
- win7/win10 64位 常见收费软件安装教程
- digraph
- sql 语句拼接 游标遍历和函数遍历
- 初识Mongodb
- android权限大全
- Groovy 闭包