In the previous article, I introduced the grid system of BootStrap3 study notes (1)
For titles, Bootstrap has modified the style of h1--h6. If you need a subtitle, you can also use small tags in it.
<h1>h1. Bootstrap heading <small>Secondary text</small></h1><h2>h2. Bootstrap heading <small>Secondary text</small></h2><h3>h3. Bootstrap heading <small>Secondary text</small></h3><h4>h4. Bootstrap heading <small>Secondary text</small></h4><h5>h5. Bootstrap heading <small>Secondary text</small></h5><h6>
If there is a h1 in the page that needs to be unique, you can include it in a div styled as "page-header".
<div><h1>Twitter Bootstrap <small>An intuitive front-end framework</small></h1></div>
Bootstrap default font size is 14px, line height is 1.428, paragraph spacing is 10px. If a paragraph needs to be more eye-catching, there is a 'lead' class
Using the text-* class, you can easily set the horizontal alignment of text
<p>Left aligned text.</p><p>Center aligned text.</p><p>Right aligned text.</p><p>Justified text.</p><p>No wrap text.</p>
Text format tags in HTML can be used in Bootstrap
<p><b>This is bold text</b></p><p><big>This is big text</big></p><p><code>This is computer code</code></p><p><em>This is emphasized text</em></p><p><i>This is italic text</i></p><p><mark>This is highlighted text</mark></p><p><small>This is small text</small></p><p><strong>This is strongly emphasized text</strong></p><p>This is <sub>subscript</sub> and <sup>superscript</sup></p><p><ins>This text is inserted to the document</ins></p><p><del>This text is deleted from the document</del></p>
The letter format conversion class can perform the required conversion well:
<p>The quick brown fox jumps over the lazy dog.</p><p>The quick brown fox jumps over the lazy dog.</p><p>The quick brown fox jumps over the lazy dog.</p>
Color is a powerful way to convey the importance of content, and Bootstrap provides convenient set text emphasis classes:
<p>Muted: This text is grayed out.</p><p>Important: Please read the instructions carefully before proceed.</p><p>Success: Your message has been sent successfully.</p><p>Note: You must agree with the terms and conditions to complete the sign up process.</p><p>Warning: There was a problem with your network connection.</p><p>Error: An error has been occurred while submitting your data.</p>
The citations have also been modified:
<blockquote><p>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.</p><small>by <cite>Albert Einstein</cite></small></blockquote>
The class is for right-aligning references.
The above is the relevant knowledge about the layout of Bootstrap3 study notes (II) introduced to you by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support to Wulin.com website!