by bootstrap Chinese web. When we download the bootstrap, we refer to the local library file:[HTML]View Plaincopy
link rel= "stylesheet" href="Css/bootstrap.min.css">
[HTML]View Plaincopy
script src="Js/bootstrap.min.js">script>
script src="Js/jquery-2.1.4.min.js">
3. Use bootstrap to provide us with styles and effec
1, Bootstrap downloadBootstrapChinese webto beBootstrapdedicated to building their own freeCDNAcceleration Services. Based on the domestic cloud manufacturersCDNservices, faster access, more accelerated effects, no speed and bandwidth limitations, and permanent free. That is, you can use bootstrap without downloading bootstrap.
A detailed tutorial on the Bootstrap framework (2 ).
Bootstrap, from Twitter, is currently the most popular front-end framework. Bootstrap is based on HTML, CSS, and JAVASCRIPT. It is concise and flexible, making Web development faster.
1. Download Bootstrap
Bootstrap table tutorial -- getting started with basic usage, bootstraptable
I read a lot of articles when querying the bootstrap table data and found that many articles have written examples on how to use bootstrap table. Of course, the best example is the official website. However, for some technical personnel, the e
Related reading:
Bootstrap Introductory Tutorial (i) Visual layout
HTML5 Document Type (Doctype)
Bootstrap uses some HTML5 elements and CSS properties, so you need to use HTML5 document types.
Mobile device Preferred
The width is set to device-width to ensure that it renders correctly on different devices.
initial-scale=1.0 make su
Related reading:
Bootstrap Introductory Tutorial (i) Visual layout
Bootstrap Getting Started Tutorial (ii) fixed built-in style
Bootstrap grid (grid system)
With the increase of the size of the screen or viewport (viewport), the response grid system is automatically divi
fade-out effect fade, while in indicates that the preferred content is displayed by default.// You can also replace it with a capsule
// Data-target
Data-target binding or not binding works the same.
// Use JavaScript to directly use the tab method. $ ('# Nav '). on ('click', function (e) {e. preventDefault (); $ (this ). tab ('show ');});
// Event, which is similar to $ ('# nav A'). on ('Show. bs. tab', function () {alert (' triggered when tab is called! ') ;}); $ (' # Nav A'). on
Data property, the option name needs to be placed after data-, such as data-animation= "".
Method
$ (). PopOver (Options)
Initializes a pop-up box for a set of elements.
$ (' #element '). PopOver (' show ')
Displays a pop-up box.
$ (' #element '). PopOver (' hide ')
Hides the pop-up box.
$ (' #element '). PopOver (' toggle ')
Show or hide the pop-up box.
$ (' #element '). PopOver (' Destroy ')
Hide and destroy the pop-up box.
Event
$ (' [Data-toggle=popover] '). On (' Sh
', function (e) {//click submit after//Prevent form submission E.preventdefault (); Get the form instance var $form = $ (e.target); Get the Bootstrapvalidator instance var bv = $form. data (' bootstrapvalidator '); Use the Ajax to submit form data submitted to the form tag in the Action,result custom $.post ($form. attr (' action '), $form. serialize (), functi On (result) {//do something ...}); });});:Abnormal:uncaught rangeerror:maximum Call stack size ExceededeNo
The bootstrap gives the button a rich set of styles, as well as a combination of styles that can be flexibly customized to suit different needs. In the fourth lesson, we introduced a set of buttons to add. Btn-group class, so that a group of buttons together into a small set of function buttons, this is very practical, interested can go to see. (Bootstrap tutorial
JS (click to hang and click to remove)This is a layerBootstrap: ( responsive design : Bootstrap's responsive CSS adapts to desktops, tablets and phones)Http://www.runoob.com/bootstrap/bootstrap-navbar.html related pagesAdd in head: core jquery file Core JS fileHere the link href and script src are style insert addresses9.27JS expansion, Bootstrap rookie
I. Methods of UseSecond, HTML structureData-toggle= "dropdown" aria-haspopup= "true" aria-expanded= "false" >Action Third, initialize the plug-inMethod One:$.fn.bootstrapdropdownhover ({Configuration parameters});Method Two:$ (' [data-toggle= ' dropdown '] '). Bootstrapdropdownhover ({});If it is a navbar, it can be initialized in the following way:$ ('. NavBar [data-toggle= "dropdown"] '). Bootstrapdropdownhover ({});Iv. methods$ (selector). Bootstrapdropdownhover (methodName, parameter);Keymob
This article mainly shares the learning notes on JS plug-in rolling listening in the Bootstrap tutorial. The content is very detailed. Interested friends can refer to this article to learn about the JavaScript plug-in-rolling listening.
1. Case studies
The scroll listening plug-in can automatically update the corresponding navigation tag based on the position of the scroll bar. You can scroll through this
Http://jingyan.baidu.com/article/6f2f55a1852aa1b5b83e6c5a.htmlWe all know that bootstrap3.0 uses four raster options to form a grid system, these four options on the official website, such as many people do not understand, here with you to explain the difference between the four grid options, in fact, only one is suitable for different sizes of screen equipment. We look at the class prefix this, we would like to name these four kinds of raster options, they are col-xs, COL-SM,COL-MD,COL-LG, we k
1, text and input boxes before and after the arrangement:
Code:
2, Text and input box up and down:
Code:
The above content is small set to introduce the BOOTSTRAP3.0 Construction Station Tutorial (a) of the bootstrap form elements of the relevant knowledge, I hope to help you!
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.