BOOTSTRAP基础学习小记(二)排版、列表、代码风格、表格
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title> </title>
</head>
<body>
<!--Bootstrap中的标题-->
<h1>Bootstrap标题一</h1>
<h2>Bootstrap标题二</h2>
<h3>Bootstrap标题三</h3>
<h4>Bootstrap标题四</h4>
<h5>Bootstrap标题五</h5>
<h6>Bootstrap标题六</h6>
<!--Bootstrap中让非标题元素和标题使用相同的样式,特意定义了.h1~.h6六个类名-->
<div class="h1">Bootstrap标题一</div>
<div class="h2">Bootstrap标题二</div>
<div class="h3">Bootstrap标题三</div>
<div class="h4">Bootstrap标题四</div>
<div class="h5">Bootstrap标题五</div>
<div class="h6">Bootstrap标题六</div>
<!--Bootstrap中使用了<small>标签来制作副标题-->
<h1>Bootstrap标题一<small>我是副标题</small></h1>
<h2>Bootstrap标题二<small>我是副标题</small></h2>
<h3>Bootstrap标题三<small>我是副标题</small></h3>
<h4>Bootstrap标题四<small>我是副标题</small></h4>
<h5>Bootstrap标题五<small>我是副标题</small></h5>
<h6>Bootstrap标题六<small>我是副标题</small></h6>
<!--Bootstrap中,p元素之间具有一定的间距,便于用户阅读文本,p元素的margin值p { margin: 0 0 10px; }-->
<p>超酷的互联网、IT技术免费学习平台,创新的网络一站式学习、实践体验;服务及时贴心,内容专业、有趣易学。专注服务互联网工程师快速成为技术高手!</p>
<!--Bootstrap中如果想让一个段落p突出显示,可以通过添加类名“.lead”实现,其作用就是增大文本字号,加粗文本,而且对行高和margin也做相应的处理。-->
<p class="lead">我是特意要突出的文本,我的样子成这样。我是特意要突出的文本,我的样子长成这样。</p>
<!--Bootstrap中可以使用<b>和<strong>标签让文本直接加粗。-->
<p>我在学习<strong>Bootstrap</strong>,我要掌握<strong>Bootstrap</strong>的所有知识。</p>
<!--斜体类似于加粗一样,除了可以给元素设置样式font-style值为italic实现之外,在Bootstrap中还可以通过使用标签<em>或<i>来实现。-->
<p>我在慕课网上跟<em>大漠</em>一起学习<i>Bootstrap</i>的使用。我一定要学会<i>Bootstrap</i>。</p>
<!--Bootstrap中强调类名(类似前面说的“.lead”),这些强调类都是通过颜色来表示强调-->
<!--.text-muted:提示,使用浅灰色(#999)-->
<div class="text-muted">.text-muted 效果</div>
<!--.text-primary:主要,使用蓝色(#428bca)-->
<div class="text-primary">.text-primary效果</div>
<!--.text-success:成功,使用浅绿色(#3c763d)-->
<div class="text-success">.text-success效果</div>
<!--.text-info:通知信息,使用浅蓝色(#31708f)-->
<div class="text-info">.text-info效果</div>
<!--.text-warning:警告,使用黄色(#8a6d3b)-->
<div class="text-warning">.text-warning效果</div>
<!--.text-danger:危险,使用褐色(#a94442)-->
<div class="text-danger">.text-danger效果</div>
<!--为了简化操作,方便使用,Bootstrap通过定义四个类名来控制文本的对齐风格-->
<p class="text-left">我居左</p>
<p class="text-center">我居中</p>
<p class="text-right">我居右</p>
<p class="text-justify">两端对齐</p>
</body>
</html>
BOOTSTRAP基础学习小记(二)排版、列表、代码风格、表格
原文:http://webqianduan.blog.51cto.com/10871868/1713962