Bootstrap下載與匯入執行個體

來源:互聯網
上載者:User
1. 通常是先匯入css

2. bootstrap依賴jQuery庫,所有jQuery必須先匯入

3. 最後再匯入bootstrap的js檔案,如果你的項目用不到bootstrap外掛程式,可以不匯入

1. 所有樣式全部採用class添加

2. 各種效果可以累加到一個元素上

<!DOCTYPE html><html><head>    <meta charset="UTF-8">    <!--匯入bootstrap的css樣式檔案-->    <link rel="stylesheet" href="dist/css/bootstrap.css">    <!--必須先匯入jQuery-->    <script src="jquery-3.2.1.js"></script>    <script src="dist/js/bootstrap.js"></script>    <title>Bootstrap下載與匯入</title></head><body><img src="1.jpg" alt="" class="img-circle img-responsive"><div class="alert alert-warning">    <a href="#" data-dismiss="alert">        &times;    </a>    <strong>警告!</strong>您的網路連接有問題。</div></body></html>
相關文章

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.