基於bootstrap的基本模板

來源:互聯網
上載者:User

標籤:

<!DOCTYPE html><html lang="en">    <head>        <meta charset="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>

 

 

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>

 

基於bootstrap的基本模板

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.