1.頁面主體
Bootstap 將全局font-size設置爲14px,line-height 行高設置爲1.428(即20px);
<p>段落元素被設置等於1/2行高(即10px);顏色被設置爲#333;
h1 36px;h2 30px;h3 24px;margin-top:20px;margin-bottom:10px;
h4 18px;h5 14px;h6 12px;margin-top:10px;margin-bottom:10px;api
經過添加 .lead 類能夠讓段落突出顯示。
del(被刪除),s(無用):刪除線
ins(插入).u(帶下劃線):下劃線
strong:加劇
em:斜體字體
class調用==>class="text-left"
text-left:左對齊 text-center:中間對齊 text-right:右對齊
text-justify:兩端對齊
text-nowrap:不換行,若是須要換行,能夠強制其在同一行
text-lowercase:英文小寫
text-uppercase:英文大寫
text-capitalize:首字母大寫
initialism:原始字體的90%,而且英文所有變爲大寫code
abbr:縮略語,縮略的是title部分,至關於一個提示語句
<abbr title="attribute">attr</abbr>ip
去除傾斜
<address>
<abbr title="Phone">P:</abbr> (123) 456-7890
</address>ci
引用:默認左對齊,加blockquote-reverse,則反方向對齊即右對齊
<blockquote class="blockquote-reverse">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
</blockquote>
<code>123</code>:背景色爲淡粉紅,字體顏色紅色,圓角矩形
<kbd>cd</kbd>:相似鍵盤被鍵入,背景色爲黑色,字體顏色白色,圓角矩形rem
ul
list-unstyled:移除默認樣式
list-inline:內聯,將其置爲一行it
dl
dl-horizontal:水平方向==》Description lists A description list is perfect for defining
terms.io
<samp> 標籤來標記程序輸出的內容。class
在 HTML5 中能夠放心使用 <b> 和 <i> 標籤。<b> 用於高亮單詞或短語,不帶有任何着重的意味;而 <i> 標籤主要用於發言、技
術詞彙等。容器
對於不須要強調的inline或block類型的文本,使用 <small> 標籤包裹,其內的文本將被設置爲父容器字體大小的 85%。標題元素中嵌套的 <small> 元素被設置不一樣的 font-size 。標題中通常爲65%。