bootstrap之hello world,bootstraphello

來源:互聯網
上載者:User

bootstrap之hello world,bootstraphello
<!DOCTYPE html> 
<html lang="en"><!--意思是告訴瀏覽器我的定義語言為英語--> 
    <head> 
        <meta charset="utf-8"><!--意思是告訴瀏覽器我網頁的編碼資訊是UTF-8--> 
      <meta http-equiv="X-UA-Compatible" content="IE=edge">   
        <meta name="viewport" content="width=device-width, initial-scale=1">
       <!--與移動端螢幕適配-->
        <title>Bootstrap的HTML標準模板</title>    
        <!-- Bootstrap --> 
        <link href="css/bootstrap.min.css" rel="stylesheet"> 
        <!--你自己的樣式檔案 --> 
        <link href="css/your-style.css" rel="stylesheet">         
        <!-- 以下兩個外掛程式用於在IE8以及以下版本瀏覽器支援HTML5元素和媒體查詢,如果不需要用可以移除 --> 
        <!--[if lt IE 9]> 
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> 
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> 
        <![endif]--> 
    </head> 
    <body> 
        <h1>Hello, world!</h1> 
         
        <!-- 如果要使用Bootstrap的js外掛程式,必須先調入jQuery --> 
        <script src="http://libs.baidu.com/jquery/1.9.0/jquery.min.js"></script> 
        <!-- 包括所有bootstrap的js外掛程式或者可以根據需要使用的js外掛程式調用 --> 
        <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>  
    </body> 
</html> 
 

以下是名詞解釋:

content="IE=edge" : 永遠以最新的IE版本模式來顯示網頁

我們來簡單解釋一下其中幾條的重要代碼:

bootstrap模板為使IE6、7、8版本(IE9以下版本)瀏覽器安全色html5新增的標籤,引入下面代碼檔案即可。

<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>

同理為使IE6、7、8版本瀏覽器安全色css3樣式,引入下面代碼:

<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>

 




在vs2008運行,bootstrapjs 報Ext未定義的錯誤,代碼如下去掉最後一個js就不報錯

...路徑對嗎?這個js檔案有嗎
ext-base.js
ext-all.js 這兩個檔案要引用在ext-lang-zh_CN.js之前
 
bootstrap學習

說起來比較複雜,你在百度文庫裡下載一下,按照步驟來操作:地址如下:
wenku.baidu.com/...b.html
參考資料:百度文庫
 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.