[Bootstrap]全局样式(二)
具体排版
1、标题和标题类 <h1> ~<h6>和.h1~h6|副标题<small>和.small
font-size margin-top margin-bottom
h1 36px 20px 10px
h2 30px 20px 10px
h3 24px 20px 10px
h4 18px 10px 10px
h5 14px 10px 10px
h6 12px 10px 10px
e.g.:<h*>这是标题<small>这是副标题</small></h*>
2、内容、p段落 font-size:14px; line-height:20px;margin-bottom:10px;
e.g.:<p>这是段落</p>
3、强调突出内容 .leader{margin-bottom:20px;font-size:16px(min-width:768:21px);font-weight:300;}
e.g.:<p class="leader">这是段落 突出显示</p>
4、标记文本<mark>和.mark {padding/background-color}
e.g.:<mark>这是标记文本</mark>||<* class="mark">这是已标记显示的文本</*>
5、删除的文本<del> 浏览器自带样式
e.g.:<del>这是删除的文本</del>
6、无用的文本<s> 浏览器自带样式
e.g.:<s>这是无用的文本</s>
7、插入的文本<ins> 浏览器自带样式
e.g.:<ins>这是插入的文本</ins>
8、带下划线文本<u> 浏览器自带样式
e.g.:<u>这是下划线的文本</u>
9、小号文本<small>和.small {font-size:85%;}
e.g.:<small>这是小号文本</small>||<* class="small">这是已小号显示的文本</*>
10、着重<strong> 浏览器自带样式 有语气
e.g.:<strong>这是着重的文本 加粗显示</strong>
11、斜体<em> 浏览器自带样式 有语气
e.g.:<em>这是着重的文本 斜体显示</em>
12、高亮文本<b> 浏览器自带样式 不带语气
e.g.:<b>这是加粗的文本</b>
13、斜体<i> 浏览器自带样式 不带语气 一般用于技术词汇、发言
e.g.:<i>这是斜体的文本</i>
14、文本对齐 .text-left .text-center .text-right .text-justify .text-nowrap
e.g.:<p class="text-left">文本左对齐</p>||<p class="text-center">文本居中对齐</p>||<p class="text-right">文本右对齐</p>||<p class="text-justify">文本两端对齐</p>||<p class="text-nowrap>文本禁止换行</p>
15、字母大小写 .text-lowercase .text-uppercase .text-capitalized
e.g.:<p class="text-lowercase">字母转换小写显示<p>||<p class="text-uppercase">字母转换大写显示<p>||<p class="text-capitalized">字母首字母大写显示<p>
16、缩略语 <abbr title=””> {cursor/border-bottom}
e.g.:<abbr>提示文本 鼠标经过显示title内容</abbr>
17、首字母缩略语 <abbr title .initialism> {font-size:90%/uppercase}
e.g.:<p><abbr class="initialism">首字母内容</abbr>首字母后面内容</p>
18、地址 <address> {font-style}
e.g.:<address>姓名<br/>地址<br>号码</address> 一般配合<br />使用
19、引用 <blockquote> {padding/font-size/border-left}
e.g.:<blockquote><p>这是引用文本</p></blockqoute> 直接引用一般配合<p>使用
20、引用+命名来源 <footer> <cite>
e.g.:<blockquote>这是引用文本<footer>这是引用来源描述<cite>这是引用名称</cite></footer></blockquote>
21、引用反向风格 .blockquote-reverse
e.g.:<blockquote class="blockquote-reverse">这是引用文本<footer>这是引用来源描述<cite>这是引用名称</cite></footer></blockquote> 右对齐显示
22、无序列表 <ul> {margin-top/margin-bottom}
e.g.:<ul><li>这是无序列表内容</li></ul>
23、有序列表 <ol> {margin-top/margin-bottom}
e.g.:<ol><li>这是有序列表内容</li></ol>
24、无样式列表 .list-unstyled {padding-left/list-style}
e.g.:<ul class="list-unstyled"><li>这是无序列表 层叠默认样式显示</li></ul>||<ol class="list-unstyled"><li>这是有序列表 层叠默认样式显示</li></ol>
25、内联样式 .list-inline {padding-left/margin-left/list-style} {display/padding}
e.g.:<ul class="list-inline "><li>这是无序列表 一行显示</li></ul>||<ol class="list-inline "><li>这是有序列表 一行显示</li></ol>
26、定义列表 <dl> {margin-top/margin-bottom} {font-weight} {margin-left}
e.g.:<dl><dt>定义标题</dt><dd>定义内容</dd></dl>
27、定义列表水平排列 .dl-horizontal
e.g.:<dl class="dl-horizontal"><dt>定义标题</dt><dd>定义内容</dd></dl> 标题和内容在一行显示
28、代码 <code> {padding/font-size/color/background-color/border-radius}
e.g.:<code>代码片段</code> 特殊字符一般以字符实体表示
29、用户输入 <kbd> {padding/font-size/color/background-color/border-radius /box-shadow}
e.g.:<kbd>键盘输入的内容</kbd>
30、代码块 <pre> {padding/margin/font-size/color/background-color/word-break/word-wrap/border/border-radius}
e.g.:<pre>代码块内容</pre> 特殊字符一般以字符实体表示
31、变量 <var> 浏览器自带样式
e.g.:<var>程序中的变量</var>
32、程序输出 <samp> {font-family}
e.g.:<samp>程序输出的内容</samp>
[Bootstrap]全局样式(二)的更多相关文章
- bootstrap全局样式二
加form-grope是为了以后更好的管理,一组form写一个form-grope 显示如下: 并排显示的话,给用户名前面再加一个div,再加horizontal,如下,并且加上control-lab ...
- bootstrap 全局样式设置
HTML <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" co ...
- bootstrap全局样式
内联子标题: 显示如下: 主体副本: 显示如下: 对齐类: 显示如下: 强调类: 显示如下: 缩略语: 地址: 表格: 加一个class:“table-striped” js里面的奇数偶数行(odd) ...
- [Bootstrap]全局样式(五)
辅助样式 1.情景文本色 .text-muted .text-primary .text-success .text-info .text-warning .text-danger {c ...
- [Bootstrap]全局样式(四)
按钮 1.基本类.btn {display/padding/margin-bottom/font-size/border-radius/border} 作用于< a:role:button &g ...
- [Bootstrap]全局样式(三)
表格 1.基本类 .table {width/margin-bottom/} {padding/border-top} e.g.:<table class="table" ...
- [Bootstrap]全局样式(一)
页面必须设置为html5文档类型 <!DOCTYPE html> <html lang="zh-CN"> ... </html> 适应移动设备 ...
- bootstrap 全局样式
reset.css html { font-family: sans-serif; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100% ...
- bootstrap复习:全局样式
一.概览 1.Bootstrap 是移动设备优先的. 2.在移动设备浏览器上,通过为视口(viewport)设置 meta 属性为 user-scalable=no 可以禁用其缩放(zooming)功 ...
随机推荐
- Meteor 加入账户系统
Meteor 加入账户系统 我们给meteor加入一个账户系统 导入包 meteor add ian:accounts-ui-bootstrap-3 meteor add accounts-passw ...
- [IOS]自定义长触屏事件
写一个Demo来自定义一个长触屏事件,自定义长按手势. 实现步骤: 1.创建一个自定义手势类,命名为LongPressGestureRecognizer,在创建的时候继承UIGestureRecogn ...
- [Angular 2] Factory Provider
In this lesson, we discuss how and when to use factory providers, to enable dependencies that should ...
- iOS修改声明为readonly的属性值
本文讨论的是,对于类中声明为 readonly 的属性值,我们就不可以修改其值了么?如何可以,那么如何修改呢? 为了便于说明,定义一个 ACLStudent 的类: ACLStudent.h @int ...
- iOS开发——UI_swift篇&UITableView实现单元格展开与隐藏
UITableView实现单元格展开与隐藏 关于UITableView的展开的收缩在前面的文章我已经结束,就是使用代理,通知,block传值的时候实现的,当时是使用一个Bool值来实现,最后使用着三 ...
- strassen algorithm
the explaination that is clear in my view is from wiki.
- document.body.clientHeight与document.documentElement.clientHeight
当你的网页有: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www ...
- HttpClient设置代理,超时,以及得到cookies
import java.net.URI; import java.util.List; import org.apache.http.HttpEntity; import org.apache.htt ...
- Fliptile
开关题 尺度法 Fliptile Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 3394 Accepted: ...
- Mac 10.9 自带apache2虚拟目录设置
花了好几天时间做这个事,终于成功,把正确的做法记录一下. 如果是第一次使用apache,可以先执行sudo apachectl start,然后在浏览器里打开http://localhost看看效果, ...