<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body></body> </html>
<meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no"> user-scalable=no,能夠禁用縮放,在移動設備瀏覽器中,不縮放要用滾動條來幫助查看 viewport 語法介紹: 01 <!-- html document --> 02 <meta name="viewport" 03 content=" 04 height = [pixel_value | device-height] , 05 width = [pixel_value | device-width ] , 06 initial-scale = float_value , 07 minimum-scale = float_value , 08 maximum-scale = float_value , 09 user-scalable = [yes | no] , 10 target-densitydpi = [dpi_value | device-dpi | high-dpi | medium-dpi | low-dpi] 11 " 12 />
在Bootstrap 3.x中增長了一個 .img-reponsive
樣式,其實就是爲圖片設置 max-width:100%;height;auto;
在圖片上加此樣式,能夠按比例縮放,但不超過父元素尺寸html
Bootstrap爲全局設置字體爲14px, 行間距爲字體的1.428倍(20px) body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.42857143; color: #333; background-color: #fff; }
// 全局樣式 p { margin: 0 0 10px; } // lead樣式用於給文本進行強調 .lead { margin-bottom: 20px; font-size: 16px; font-weight: 300; line-height: 1.4; }
<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>
當鼠標懸停在縮寫和縮寫詞上時就會顯示完整內容bootstrap
<abbr title="attribute">attr</abbr>
<abbr title="HyperText Markup Language" class="initialism">html</abbr>
<address> <strong>Twitter, Inc.</strong><br> 1355 Market Street, Suite 900<br> San Francisco, CA 94103<br> <abbr title="Phone">P:</abbr> (123) 456-7890 </address> <address> <strong>Full Name</strong><br> <a href="mailto:#">first.last@example.com</a> </address>
在你的文檔中引用其餘來源的內容瀏覽器
<blockquote> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p> </blockquote>
<blockquote> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p> <footer>Someone famous in <cite title="Source Title">Source Title</cite></footer> </blockquote>
<blockquote class="blockquote-reverse"> ... </blockquote>