<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # 第 2 章 排版樣式 **學習要點:** 1.頁面排版 主講教師:李炎恢 本節課我們主要學習一下 Bootstrap 全局 CSS 樣式中的排版樣式,包括了標題、頁面主體、對齊、列表等常規內容。 **一.頁面排版** Bootstrap 提供了一些常規設計好的頁面排版的樣式供開發者使用。 **1.****頁面主體** Bootstrap 將全局 font-size 設置為 14px,line-height 行高設置為 1.428(即20px);&lt;p&gt;段落元素被設置等于 1/2 行高(即 10px);顏色被設置為#333。 //創建包含段落突出的文本 ``` <p>Bootstrap 框架</p> <p class="lead">Bootstrap 框架</p> <p>Bootstrap 框架</p> <p>Bootstrap 框架</p> <p>Bootstrap 框架</p> ``` **2.****標題** //從 h1 到 h6 ``` <h1>Bootstrap 框架</h1>//36px <h2>Bootstrap 框架</h2>//30px <h3>Bootstrap 框架</h3>//24px <h4>Bootstrap 框架</h4>//18px <h5>Bootstrap 框架</h5>//14px <h6>Bootstrap 框架</h6>//12px ``` 我們從 Firebug 查看元素了解到, Bootstrap 分別對 h1 ~ h6 進行了 CSS 樣式的重構,并且還支持普通內聯元素定義 class=(.h1 ~ h6)來實現相同的功能。 //內聯元素使用標題字體 ``` <span class="h1">Bootstrap</span> ``` 注:通過 Firebug 查看元素還看到,字體顏色、字體樣式、行高均被固定了,從而保證了統一性,而原生的會根據系統內置的首選字體決定,顏色是最黑色。 在 h1 ~ h6 元素之間,還可以嵌入一個 small 元素作為副標題, //在標題元素內插入 small 元素 ``` <h1>Bootstrap 框架 <small>Bootstrap 小標題</small></h1> <h2>Bootstrap 框架 <small>Bootstrap 小標題</small></h2> <h3>Bootstrap 框架 <small>Bootstrap 小標題</small></h3> <h4>Bootstrap 框架 <small>Bootstrap 小標題</small></h4> <h5>Bootstrap 框架 <small>Bootstrap 小標題</small></h5> <h6>Bootstrap 框架 <small>Bootstrap 小標題</small></h6> ``` 通過 Firebug 查看,我們發現 h1 ~ h3 下 small 元素的大小只占父元素的 65%,那么通過計算(查看 Firebug 計算后的樣式), h1 ~ h3 下的 small 為 23.4px、 19.5px、 15.6px;h4 ~ h6 下 small 元素的大小只占父元素的 75% ,分別為:13.5px、10.5px、9px。在 h1 ~ h6 下的 small 樣式也進行了改變,顏色變成淡灰色:#777,行高為 1,粗度為 400。 **3.內聯文本元素** //添加標記,&lt;mark&gt;元素或.mark 類 ``` <p>Bootstrap<mark>框架</mark></p> ``` //各種加線條的文本 ``` <del>Bootstrap 框架</del>//刪除的文本 <s>Bootstrap 框架</s>//無用的文本 <ins>Bootstrap 框架</ins>//插入的文本 <u>Bootstrap 框架</u>//效果同上,下劃線文本 ``` //各種強調的文本 ``` <small>Bootstrap 框架</small>//標準字號的 85% <strong>Bootstrap 框架</strong>//加粗 700 <em>Bootstrap 框架</em>//傾斜 ``` **4.對齊** //設置文本對齊 ``` <p class="text-left">Bootstrap 框架</p>//居左 <p class="text-center">Bootstrap 框架</p>//居中 <p class="text-right">Bootstrap 框架</p>//居右 <p class="text-justify">Bootstrap 框架</p>//兩端對齊,支持度不佳<p class="text-nowrap">Bootstrap 框架</p>//不換行 ``` **5.大小寫** //設置英文文本大小寫 ``` <p class="text-lowercase">Bootstrap 框架</p> //小寫 <p class="text-uppercase">Bootstrap 框架</p> //大寫 <p class="text-capitalize">Bootstrap 框架</p>//首字母大寫 ``` **6.縮略語** //縮略語 ``` Bootstrap<abbr title="Bootstrap" class="initialism">框架</abbr> ``` **7.地址文本** //設置地址,去掉了傾斜,設置了行高,底部 20px ``` <address>   <strong>Twitter, Inc.</strong><br>   795 Folsom Ave, Suite 600<br>   San Francisco, CA 94107<br>   <abbr title="Phone">P:</abbr> (123) 456-7890 </address> ``` **8.引用文本** //默認樣式引用,增加了做邊線,設定了字體大小和內外邊距 ``` <blockquote>   Bootstrap 框架 </blockquote> ``` //反向 ``` <blockquote class="blockquote-reverse ">   Bootstrap 框架 </blockquote> ``` **9.列表排版** //移出默認樣式 ``` <ul class="list-unstyled">   <li>Bootstrap 框架</li>   <li>Bootstrap 框架</li>   <li>Bootstrap 框架</li>   <li>Bootstrap 框架</li>   <li>Bootstrap 框架</li> </ul> ``` //設置成內聯 ``` <ul class="list-inline">   <li>Bootstrap 框架</li>   <li>Bootstrap 框架</li>   <li>Bootstrap 框架</li>   <li>Bootstrap 框架</li>   <li>Bootstrap 框架</li> </ul> ``` //水平排列描述列表 ``` <dl class="dl-horizontal">   <dt>Bootstrap</dt>   <dd>Bootstrap 提供了一些常規設計好的頁面排版的樣式供開發者使用。</dd> </dl> ``` **10.代碼** //內聯代碼 ``` <code>&lt;section&gt;</code> ``` //用戶輸入 ``` press <kbd>ctrl + ,</kbd> ``` //代碼塊 ``` <pre>&lt;p&gt;Please input...&lt;/p&gt;</pre> ``` Bootstrap 還列舉了&lt;var&gt;表示標記變量,&lt;samp&gt;表示程序輸出,只不過沒有重新復寫 CSS。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看