The introduction of correct posture bootstrap

1. First, the introduction of static CSS style

<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css">

2. The introduction of dynamic js

<!--使用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> 

Introduced downloaded to the local Bootstrap
In fact, this was what to say, when referring to the need to pay attention to the correct path.
example:

 <!--引入css>
 <link rel="stylesheet" href="./dist/css/bootstrap.min.css">   
 <!--引入js>         
 <script src="./dist/jquery-3.1.1/jquery-3.1.1.min.js"></script>
 <script src="./dist/js/bootstrap.min.js"></script>

Note: It is best to introduce the js file in the lowermost body. Js is to make the page fully loaded after only works, such as your js which has a alert, if placed in the head because of the pop-up window waiting for the user to confirm and cause the entire page to load affected. Therefore, the common practice style sheets are usually placed in head first and loaded, and after the body js.
Individual opinion (to be improved)
on the current understanding of the level of knowledge, I suggest the best or downloaded to the local introduction of Bootstrap

Guess you like

Origin www.cnblogs.com/divtab/p/10986066.html