Bootstrap Theoretical basis

Source: Internet
Author: User

The first step, start, introduce the basic style

<!--new Bootstrap core CSS file -<Linkrel= "stylesheet"href= "//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css"><!--jquery file. Be sure to introduce it before Bootstrap.min.js -<Scriptsrc= "//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></Script><!--the latest Bootstrap core JavaScript files -<Scriptsrc= "//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></Script>

The second step is compatible with the following IE9

Let's briefly explain a few of these important codes:

The bootstrap template introduces the following code file for IE6, 7, and 8 versions (IE9) browser-compatible HTML5 new tags.

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

Similarly, to make the IE6, 7, 8 browser compatible CSS3 styles, introduce the following code:

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

The basic examples are as follows:

<!DOCTYPE HTML><HTMLLang= "en">    <Head>        <MetaCharSet= "Utf-8">        <Metahttp-equiv= "X-ua-compatible"content= "Ie=edge">        <Metaname= "Viewport"content= "Width=device-width, initial-scale=1">        <title>HTML Standard template for bootstrap</title>           <!--Bootstrap -        <Linkhref= "Css/bootstrap.min.css"rel= "stylesheet">        <!--your own style file -        <Linkhref= "Css/your-style.css"rel= "stylesheet">                <!--The following two plugins are used to support HTML5 elements and media queries in IE8 and the following versions of browsers, if they are not required to be removed -        <!--[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>                <!--If you want to use Bootstrap's JS plugin, you must first dial into jquery -        <Scriptsrc= "Http://libs.baidu.com/jquery/1.9.0/jquery.min.js"></Script>        <!--includes all bootstrap JS plug-ins or can be used according to the JS plugin call -        <Scriptsrc= "Http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></Script>     </Body></HTML>
World

Bootstrap Theoretical basis

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.