Bootstrap3学习笔记(二)之排版

在上篇文章给大家介绍了

对于标题,Bootstrap已经修改了h1--h6的样式,如果需要副标题,还可以在其中使用small标记

rush:js;">

h1. Bootstrap heading Secondary text

h2. Bootstrap heading Secondary text

h3. Bootstrap heading Secondary text

h4. Bootstrap heading Secondary text

h5. Bootstrap heading Secondary text
h6. Bootstrap heading Secondary text

如果页面中有一个需要与众不同的h1,则可以将其包含在样式为“page-header的div中。

rush:js;">

Bootstrap认字体大小为14px,行高1.428,段落间距10px,如果某个段落需要醒目一点,可是有'lead'类 使用text-*类,可以很方便的设定文本的水平对齐方式

rush:js;">

Nowrap">No wrap text.

HTML中的文字格式标记在Bootstrap中都可以使用

rush:js;">

This is bold text

This is big text

This is computer code

This is emphasized text

This is italic text

This is highlighted text

This is small text

This is h3ly emphasized text

This is subscript and superscript

This text is inserted to the document

This text is deleted from the document

字母格式转换类可以很好的完成需要的转换:

rush:js;">

brown fox jumps over the lazy dog.

brown fox jumps over the lazy dog.

brown fox jumps over the lazy dog.

颜色是传递内容重要性的有力方式,Bootstrap提供了便利的设定文字强调级别的类:

rush:js;">

对引用内容也做了修饰:

rush:js;">
The world is a dangerous place to live; not because of the people who are evil,but because of the people who don't do anything about it.

by Albert Einstein

其中的类是为了右对齐引用。

以上所述是小编给大家介绍的Bootstrap3学习笔记(二)之排版的相关知识。编程之家 jb51.cc 收集整理的教程希望能对你有所帮助,如果觉得编程之家不错,可分享给好友!感谢支持

相关文章

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