国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > JavaScript > 正文

Bootstrap3學習筆記(二)之排版

2019-11-20 09:59:08
字體:
來源:轉載
供稿:網友

在上篇文章給大家介紹了BootStrap3學習筆記(一)之網格系統

對于標題,Bootstrap已經修改了h1--h6的樣式,如果需要副標題,還可以在其中使用small標記

<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>h6. Bootstrap heading <small>Secondary text</small></h6>

如果頁面中有一個需要與眾不同的h1,則可以將其包含在樣式為“page-header的div中。

<div class="page-header"><h1>Twitter Bootstrap <small>An intuitive front-end framework</small></h1></div>

Bootstrap默認字體大小為14px,行高1.428,段落間距10px,如果某個段落需要醒目一點,可是有'lead'類
使用text-*類,可以很方便的設定文本的水平對齊方式

<p class="text-left">Left aligned text.</p><p class="text-center">Center aligned text.</p><p class="text-right">Right aligned text.</p><p class="text-justify">Justified text.</p><p class="text-nowrap">No wrap text.</p>

HTML中的文字格式標記在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>

字母格式轉換類可以很好的完成需要的轉換:

<p class="text-lowercase">The quick brown fox jumps over the lazy dog.</p><p class="text-uppercase">The quick brown fox jumps over the lazy dog.</p><p class="text-capitalize">The quick brown fox jumps over the lazy dog.</p>

顏色是傳遞內容重要性的有力方式,Bootstrap提供了便利的設定文字強調級別的類:

<p class="text-muted">Muted: This text is grayed out.</p><p class="text-primary">Important: Please read the instructions carefully before proceed.</p><p class="text-success">Success: Your message has been sent successfully.</p><p class="text-info">Note: You must agree with the terms and conditions to complete the sign up process.</p><p class="text-warning">Warning: There was a problem with your network connection.</p><p class="text-danger">Error: An error has been occurred while submitting your data.</p>

對引用內容也做了修飾:

<blockquote class="pull-right"><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>

其中的類是為了右對齊引用。

以上所述是小編給大家介紹的Bootstrap3學習筆記(二)之排版的相關知識,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復大家的。在此也非常感謝大家對武林網網站的支持!

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 任丘市| 军事| 霍城县| 左贡县| 甘泉县| 丰都县| 德庆县| 安龙县| 永济市| 彭阳县| 武邑县| 桦甸市| 元朗区| 波密县| 大田县| 福鼎市| 巴里| 黄平县| 南漳县| 融水| 天门市| 斗六市| 砚山县| 汽车| 北票市| 姜堰市| 杭锦后旗| 乳山市| 华容县| 玉环县| 黎城县| 教育| 民权县| 禹城市| 新郑市| 丹江口市| 兴仁县| 镇康县| 团风县| 色达县| 岑巩县|