"BootStrap" Preliminary tutorial

Source: Internet
Author: User
Tags free cdn

[HTML]View Plaincopy
    1. <span style="font-family:arial, Helvetica, Sans-serif;" > has just come into contact with Bootstrap, and here is a summary of how bootstrap is used. </span>

1, Bootstrap download

Bootstrap Chinese Network for Bootstrap dedicated to build their own free CDN accelerator services. Based on the domestic cloud vendor CDN service, the access speed is faster, the acceleration effect is more obvious, no speed and bandwidth limit, permanent free. That is, you can use bootstrap without downloading bootstrap.

Bootstrap Chinese web site: http://www.bootcss.com/

2. Refer to Bootstrap in the page

[HTML]View Plaincopy
  1. <Meta charset="Utf-8">
  2. <Meta http-equiv= "x-ua-compatible" content="Ie=edge">
  3. <Meta name="viewport" content="width=device-width, initial-scale=1">
  4. <!--the above 3 meta tags * must be * placed first, and any other content * must be * followed thereafter! -
[HTML]View Plaincopy
    1. <link rel="stylesheet" href= "http://cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.min.css ">
[HTML]View Plaincopy
    1. <!--<script src= "Http://cdn.bootcss.com/jquery/1.11.2/jquery.min.js" ></script>-->
    2. <!--Include all compiled plugins (below), or include individual files as needed-
    3. <!--<script src= "Http://cdn.bootcss.com/bootstrap/3.3.4/js/bootstrap.min.js" >-->

In the absence of downloading bootstrap, we quoted the CSS Library and JS library provided by bootstrap Chinese web. When we download the bootstrap, we refer to the local library file:

[HTML]View Plaincopy
    1. <link rel= "stylesheet" href="Css/bootstrap.min.css">

[HTML]View Plaincopy
    1. <script src="Js/bootstrap.min.js"></script> <!--the extracted local files--
    2. <!--Include all compiled plugins (below), or include individual files as needed-
    3. <script src="Js/jquery-2.1.4.min.js">

3. Use bootstrap to provide us with styles and effects

In the page we only need to refer to the bootstrap for us to write a class selector to obtain the various effects of bootstrap. Like what:

(1) button style:

* The size of the button is adopted .btn-large , .btn-small or.btn-mini

.btn-block Create block-level buttons by adding and fill the width of the entire parent


* buttons are available or not.disabled

The rest is not much to say, the above example from the bootstrap official website.

Description: The above example is from http://bootstrap.kinghack.com/base-css.html, you can also use this site to learn bootstrap.

"BootStrap" Preliminary tutorial

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.