Bootstrap学习笔记(二)
来源:互联网 发布:macbook下载软件免费 编辑:程序博客网 时间:2024/05/24 01:39
排版
标题
标题分为<h1><h2><h3><h4><h5><h6>
,对应的字体如下表所示。
<!DOCTYPE html><html><head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0" > <link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.min.css"> <script type="text/javascript" src="bootstrap/js/jquery.min.js"></script> <script type="text/javascript" src="bootstrap/js/bootstrap.min.js" ></script> <title>排版</title></head><body> <div style="height: 30px"></div> <div class="container" style="background: #eee" > <h1 class="h1">标题:title</h1> <h2 class="h2">标题:title</h2> <h3 class="h3">标题:title</h3> <h4 class="h4">标题:title</h4> <h5 class="h5">标题:title</h5> <h6 class="h6">标题:title</h6> </div></body></html>
在h系统的标题里面还可以内嵌两个标题标签,分别是大标题<big>
,小标题<small>
,示例如下
<div class="container" style="background: #eee" > <h1 class="h1">标题:title<small>小标题:small</small><big>大标题:big</big></h1> <h2 class="h2">标题:title<small>小标题:small</small><big>大标题:big</big></h2> <h3 class="h3">标题:title<small>小标题:small</small><big>大标题:big</big></h3> <h4 class="h4">标题:title<small>小标题:small</small><big>大标题:big</big></h4> <h5 class="h5">标题:title<small>小标题:small</small><big>大标题:big</big></h5> <h6 class="h6">标题:title<small>小标题:small</small><big>大标题:big</big></h6></div>
页面主体
Bootstrap的全局font-size是14px,相当于h5字号的大小,ine-height是1.428。
在<p>
标签内部加lead属性会使段落的字体变大加粗,效果更明显。
示例如下
<div class="container" style="background: #eee"> <p > Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. </p> <p class="lead"> Nullam id dolor id nibh ultricies vehicula. </p></div>
内联文本元素
<div class="container" style="background: #eee"> <div> <mark><mark>标记 </mark>文本 <br/> <del><del>删除线 </del> <br/> <s><s>删除线 </s> <br/> <ins><ins>下划线 </ins> <br/> <u><u>下划线 </u> <br/> <em><em>斜体 </em> <br/> <i><i>斜体 </i> <br/> <b><b>加粗 </b> <br/> <strong><strong>加粗 </strong> <br/> <small><small>小号文本small</small> <br/> <big><big>大号文本big</big> </div></div>
阅读全文
0 0
- bootstrap 学习笔记(二)
- Bootstrap学习笔记(二)
- Bootstrap 学习笔记(二)
- Bootstrap学习笔记(二)
- bootstrap学习笔记二
- BootStrap学习笔记二
- bootstrap学习笔记(二)
- bootstrap学习笔记(二)--table
- Bootstrap学习笔记之组件(二)
- Bootstrap学习笔记(二)排版
- Bootstrap学习笔记(二) 表单
- Bootstrap快速学习笔记(1)排版系列之二
- Bootstrap快速学习笔记(2)表单系列之二
- python Flask学习笔记(二)-集成bootstrap
- bootstrap框架学习笔记二(表单、按钮)
- FreeCodeCamp 学习笔记(二)响应式框架bootstrap
- [学习笔记] bootstrap (二) 表格和表单
- Bootstrap学习笔记(一)
- CodeForces
- 模板中使用str_limit限定字符长度
- C/C++训练1---最大公约数与最小公倍数
- PAT 1056. 组合数的和(15)
- 设计模式扫盲篇
- Bootstrap学习笔记(二)
- Web服务器、Servlet容器和Servlet
- 第一天
- UML图及其含义
- 秋招闲扯
- Negroni和Gorilla/mux 解析 Golang
- Embed Tomcat8简单示例
- 统一资源定位符
- MySql 里的IFNULL、NULLIF和ISNULL用法