Bootstrap3学习笔记(二)之排版

2022-01-14,,

在上篇文章给大家介绍了BootStrap3学习笔记(一)之网格系统对于标题,Bootstrap已经修改了h1--h6的样式,如果

在上篇文章给大家介绍了BootStrap3学习笔记(一)之网格系统

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

 

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中。

  

Twitter Bootstrap An intuitive front-end framework

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

 

Left aligned text.

Center aligned text.

Right aligned text.

Justified text.

No wrap text.

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

 

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 strongly emphasized text

This is subscript and superscript

This text is inserted to the document

This text is deleted from the document

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

 

The quick brown fox jumps over the lazy dog.

The quick brown fox jumps over the lazy dog.

The quick brown fox jumps over the lazy dog.

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

 

Muted: This text is grayed out.

Important: Please read the instructions carefully before proceed.

Success: Your message has been sent successfully.

Note: You must agree with the terms and conditions to complete the sign up process.

Warning: There was a problem with your network connection.

Error: An error has been occurred while submitting your data.

对引用内容也做了修饰:

 

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学习笔记(二)之排版的详细内容,更多请关注本站其它相关文章!

《Bootstrap3学习笔记(二)之排版.doc》

下载本文的Word格式文档,以方便收藏与打印。