微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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 收集整理的教程希望能对你有所帮助,如果觉得编程之家不错,可分享给好友!感谢支持

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐