0% found this document useful (0 votes)
33 views408 pages

Bootstrap3 141102072431 Conversion Gate02

This document introduces Anies Hikmat Abu Hamid and provides information about a free Bootstrap course. It shares Abu Hamid's contact information and introduces the importance of learning Bootstrap, which has become the leading web development framework. It outlines what will be covered in the upcoming free course on Bootstrap.

Uploaded by

chagui
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views408 pages

Bootstrap3 141102072431 Conversion Gate02

This document introduces Anies Hikmat Abu Hamid and provides information about a free Bootstrap course. It shares Abu Hamid's contact information and introduces the importance of learning Bootstrap, which has become the leading web development framework. It outlines what will be covered in the upcoming free course on Bootstrap.

Uploaded by

chagui
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 408

: .

:
[email protected], [email protected]
www.2nees.com :


[email protected] /

.. ..
.. ,
.. .
, , , ,
,boostrap3 ,
, framework
.. .. 10/12/2014
.. ..
.. .. ..
[email protected] /

(1
(2
(3
(4

Html
Css
Js
.. jQuery
.. ...
..jQuery click
.. on

[email protected] /

..
.. framework
SASS .. LESS
bootstrap .. css
SASS compilation ... css
..
2nees.com/courses

[email protected] /


[email protected] /

bootstrap framework
Mark Otto Jacob Thornton ,
framework ,
2011 GitHup
open source 3 2014
..
framework
, ,
, ..
..mobile first framework
framework ...
[email protected] /

Framework ..
.. Front-end framework ..
front-end
, ..
bootstrap
html, css
...text, forms, buttons
.

[email protected] /

(1

(2

(3

bootstrap3 framework
.. mobile-first
mobile ...
bootstrap3 ,
) ..
..
..
.. ^_^(.
, html, css, js
.. bootstrap
.. ^_* .bootstrap
[email protected] /

(4

:Responsive Web Design


.. .. tablet,
.*_^ mobile, normal screen
bootstrap
responsive ..
^_*.
..

.. responsive
[email protected] /

bootstrap
:
:Scaffolding (1
..
..
.. ..
.. grid system,
responsive design, contains layout, Fluid Grid
:Base Css (2
, , .. btn
[email protected] /

:components (3
navbar,
.. dropdowns.
:Js plugIn (4
.. .. ..
:Customize (5 .

[email protected] /


[email protected] /

bootstrap ..
basic page .. ..
bootstrap )
bootstrap
.(bootstrap3
http://getbootstrap.com/getting-started/ :

[email protected] /

[email protected] /

[email protected] /

[email protected] /

:
bootstrap
.. CDN
:CDN CDN
.. Content Delivery Network

..
bootstrap cashe ..
..
...
[email protected] /

.. bootstrap
.. ..
html index
root folder ..
..
.. basic template
.. index.html ..
... Bootstrap
[email protected] /

[email protected] /

template:
(1 > <!doctype html
.. css html
.. html5

(2

bootstrap *_^ mobile-first


..
.. .. meta tag
[email protected] /

meta tag zooming


mobile ..
override ..
zoom
... user-scalable=no :

(3

meta tag
bootstrap IE
[email protected] /

bootstrap ie
..
(4

.. hack condition
...Respond.js

[email protected] /

(5

.. jQuery ..bootstrap

.. ..*_^ ...
: .. ..
.. html .. bootstrap ^_*
[email protected] /




..

[email protected] /


[email protected] /

... .. .. css
.. .. ..
.. .. wrapper wrapper
bootstrap container container-fluid
.. 2 classes :

[email protected] /

..
.. Container responsive fixed-..
.. width .. px1170
.. ; margin:0 auto
*_^ ...css
container-fluid ..
.. padding ..
^_^ ...

[email protected] /

.. container container-fluid
.. ..Grid System
.. ..
..
bootstrap *_^ ..
Grid system
.. Bootstrap grid system
:Grid system / /

..
[email protected] /


grid system 960 Grid system
Grid system ..
.. ^_*
.. ..

[email protected] /

[email protected] /

[email protected] /

..
.. grid system
.. ..
width .. ..
block 8 4 + )..
12 (
6 6 + = 12 .. ....
.. grid system
).. ( ..
*( : *_^..
[email protected] /

.. bootstrap Grid System Grid


bootstrap 12colmn
.. bootstrap
responsive .. mobile first
grid responsive
.. bootstrap
responsive *_^ ..
*_^ bootstrap Grid system
) :
^_*(
[email protected] /

(1

(2
(3
(4

grid container
container-fluid
.. container-fluid
full-width container
fixed-width .. grid

*_^..
..
..
.row .col-xs-4 grid .
[email protected] /

(5

(6

(7
(8

/ grid
..
margin ..
bootstrap
12 .. grid
.. 3 ..
..col-xs-4
12 ..
.. ^_*
.. mobile
grid
css class .col-md- ....col-lg-
[email protected] /

(9

bootstrap grid
:xs Extra small devices
grid
.. 768px
.. .. ..
responsive grid
*_^.. 768
:sm Small devices xs
*_^..768px

[email protected] /

:md Medium devices xs


.^_^ 992px
:lg Large devices xs
.. 1200px
.. xs responsive
grid .. 768
.. .. sm responsive
.. 768
... .. ..
[email protected] /

.. ^_* ..
.. ^_^ .. :

[email protected] /


.. ..
..
.. ..
^_*
.. .. ..
.. ^_*
:
)..^______^.. .. (
[email protected] /

[email protected] /

[email protected] /

[email protected] /

[email protected] /

1200px

[email protected] /

[email protected] /

. .. :

.. .. bootstrap
.. ^_* .. .
grid :
: 12 .. : 2 ... : 4
*_^ 12


[email protected] /

[email protected] /

..
grid ..
1200 12 .. 768 4
... 2
bootstrap ^_^ ..
.. class ..
^_^ col-xs-2 col-md-4 col-lg-1
^_^

[email protected] /

[email protected] /

. ^_*

[email protected] /

.. .. ..
.. ^_*

.. ..
.. .. .. :
grid 6 .. lg
4 md 2
.*_^ sm

[email protected] /

^_*..
) (
.. grid
* .. col-md-offset- *
.. ..
.. col-md-offset-4
4 ..^_^.. md
*_^ ... 992
.. ^_^

[email protected] /

.. ..
..

[email protected] /

..
..
..

[email protected] /

.. .. ..
..
..
.. ..

.. under
..

[email protected] /

** .
.. .. .. ^_*
div class
.. visible-xs-block - clearfix
:clearfix
.. clear:both ..css
:visible-xs-block
..
clear fix ...

[email protected] /

...
.. md .. under
md .. xs ...


[email protected] /

[email protected] /

..
..
.. Nesting Column

[email protected] /

.. ..
.. 12 ) ..
12 ( .. ..
.. 8 12 ..
.. .. 1170
8 ..
) ..780(8 * 1170/12 .
4 8
.. 780 12 4
....260 = 4 * 780/12

[email protected] /

.. ..
.. .. level
Level 1 ..
.. Level 2
.. Nesting Column
: grid ..
.. .. grid ..
..
.. ^_^

[email protected] /

.. ^_^.. ^_* ..
.. grid responsive
..
..
2 class:
:.col-md-push-* (1
...
:.col-md-pull-* (2
...
..
*_^..

[email protected] /

.. ..

[email protected] /

..
...
.. ..
.. .. push
.. pull ..
.. ..
^_*

[email protected] /

http://getbootstrap.com/css/
^_^


[email protected] /

[email protected] /

Typography ..
bootstrap ..
..
(1 :heading h1 .. h6
.. ) :
.. html
(- bootstrap template

[email protected] /

(2 :body 14px
> <p margin-bottom 10px
..

.. ..
..

[email protected] /

:Inline text elements (3 mark


highlight ..abbr

.. ..
^_* :

[email protected] /

..
html ^_^ bootstrap
^_^..table
.. bootstrap
.. *_^ .. class=table :

[email protected] /

bootstrap
) (.. Striped
class table-striped
.. table ) : ie-8
css3 )((*_^ nth:child

[email protected] /

..
... class table-bordered
) : (..

[email protected] /

..
... row hover
..
.. *_^.. -
.. table-hover :

[email protected] /

class table- condensed


padding ..
padding ..
.. ^_*
:

[email protected] /

bootstrap
,Contextual classes class
..
Contextual classes:

[email protected] /

.. ^_^:

[email protected] /

.. table ^_*
... *___^ Responsive table
table .. responsive
..
).. responsive grid divs
(..
blocks ).. media
.. ( query .. customize .. scroll
.. .. .. ..
..*_^ Responsive ..
table-responsive

[email protected] /

class scroll ..
) : div(:


[email protected] /

[email protected] /

Forms ,
..
bootstrap ..
bootstrap ..
Form bootstrap
:
(1 input, textarea, and select
.. %100 .. .form-control
(2 label html div wrapper
) ( .form-group.

[email protected] /

(3 role="form >.*_^ <form


layout bootstrap 3
:
Vertical (default) form (1
Inline form (2
Horizontal form (3
.. ^_*

[email protected] /

Vertical form (default)

[email protected] /

Vertical form (default)

[email protected] /

.. form inline form


inline .. aligned left
label .. ..html
inline form
form-inline >...<form
*( :
)..768px
^_*(

[email protected] /

Inline form code

Inline form result

[email protected] /

: .. .sr-only
label .. form class
! ..
label
.. Screen Reader ..
label ^_*
..
.. sr class
*_^ label

[email protected] /

.sr-only

[email protected] /

.. .. Horizontal From inline


.. vertical label form component
.. ) group(wrapper *_^ ..

form-horizontal >*_^ <from
.. label control-label ..
.. ^_*
label wrapper form
.. component
^_*

[email protected] /

/
^_^ ...


[email protected] /

[email protected] /

.. html
bootstrap form
:
Input (1
textarea (2
checkbox (3
radio (4
Select (5
Others ^_* (6
html tag ^_^..
.. ...

[email protected] /

:Input (1 html input


:
text, password, datetime, datetime-local
, date, month, time, week, number, email, url,
search, tel, and color .
.. bootstrap ..
.. form-control ..
) (type input
^_* ... ^_^

[email protected] /

:textarea (2 tag
) ( ..
..
.. form-control
.. rows :

[email protected] /

:(checkbox & radio) 4 & 3


checkbox radio
..
checkbox ..
radio ..
.. radio checkbox
.. form-control
:
(1
checkbox-inline . radio-inline
box radio .

[email protected] /

(2 box radio wrapper


div .. label
(3 disabled ..
.. 2
bootstrap ..
^_^:
.. div class
.. ^_^
^_*

[email protected] /

[email protected] /

:Select (5 select ..
.. bootstrap select
...
^_^ ...multiple
..
Bootstrap ..
.. html
..

[email protected] /

.. 1 .. 5
.. (others) 6
:Others (6 /
..
plan text .. label
.. .. bootstrap ..
class
^_^

[email protected] /

( : Static control label


,horizontal
form-control-static ..&_& p tag
..
.. form email ..
) (:

[email protected] /

.. .. ^_^ ...
... > .. *_^ <p
^_^

[email protected] /

( :form control state bootstrap



..
..^_^ :focus
.. bootstrap / ..
:
:INPUT FOCUS
focus ..
outline *_^.. box-shadow

[email protected] /


^_^... outline

[email protected] /

:DISABLED INPUTS
..
*_^ ..

[email protected] /

:DISABLED FIELDSETS
fieldset tag
^_^..

* : IE
.. js code
.. ie

[email protected] /

[email protected] /

:VALIDATION STATES
..
..
wrapper
.control-label, .form-control, .help-block
class :
.has-warning, .has-error, or .has-success
.. ^_^
.. ..class

[email protected] /

wrapper
^_^ ..
.. ^_^

[email protected] /

^_^
Both
Has-warning for text only
Both
Has-warning for label only

wrapper
^_^ ..

[email protected] /

:ICONS ..
.. input ..^_^ icons icons
.. has-feedback
.. bootstrap
ico ..
component .. bootstrap
... ..
ico ....
:

[email protected] /

[email protected] /

^_^..

ico ico ^_^

[email protected] /

..
:

..

*_^ Valid state



.. ..


[email protected] /

[email protected] /

.. ..
.. .. )..
.. (^_^ :P
.. form
..
.. ^_^.. bootstrap
.. :

[email protected] /

(1

:height
) (height
class input-lg input-
...sm :


inspect element

[email protected] /

(2

:^_^.. width
bootstrap
.. ^_*.. !!.. ..
..^_^ col ....^_^ col-xs-3
) : (

[email protected] /

(3

..
.. form-group-lg
form-group-sm ..group ..

.. ..horizontal form
.. label
..
^_^
:

[email protected] /

[email protected] /

^_^ ... form ..


..^_^ Help text

.. mm-dd-yy
.. ..
.. ..
bootstrap ..
... help-text ^_*

[email protected] /

: ..
..
..
.. Inspect element


[email protected] /


[email protected] /

[email protected] /

bootstrap
.. buttons ..
.. ico
).. ... ( form
:button

[email protected] /

.. ..
*_^ ..

[email protected] /

)..
^_^(

.. buttons
.. .. button ..
.. bootstrap *_^ ..
button
.btn-lg .btn-sm .btn-xs .btn-block

[email protected] /

.. bootstrap
.. .. btn-lg
.. btn
.. .. btn-block
btn .. block
width ^_^ ... parent
.. ^_*

[email protected] /

[email protected] /

.. ^_^ Button State


button state
button
.. bootstrap ) active
css (:active
button state :
ACTIVE State
DISABLED State

[email protected] /

(1 Active state
active button ..
.. pseudo-class :active
...
active ) ( ..
button >... <a
:

..
.. hover ..
.. active

[email protected] /

:Disabled State (2 disabled


button ..
bootstrap
disabled
...%50
button > .. <a :

button
Disabled attribute > <a
... disabled

[email protected] /

.. disabled
(1 bootstrap pointer-events:
none css > <a
..
Ie11 .. opera 18
> <a ^_^..
(2 > <a > <button
> <a .. nav
navbar ..
.. button
.. ...

[email protected] /

.. Button ... ^_^ Button tag


.. ^_^ ...
.. button 3
tag .. button
..

tag ..!!

[email protected] /

bootstrap
> <button ..
,..
Firefox .. 30
line-height > ..... <input ^_^
^_^ : , html ..
> <button html tag

><button>Value <b>this</b></button
tag ..

[email protected] /

.. ..
..^_^ ..

^_^ ...
.. ...
^_^
...


[email protected] /

[email protected] /

bootstrap ...
responsive ..
.. ..
:
Responsive images (1
Image shapes (2

[email protected] /

(1

:Responsive Image
.. bootstrap
... img-responsive

.. ..
...

[email protected] /

[email protected] /

(2

.I
.II
.III

:Image shapes
.. bootstrap 3 3
:
:img-rounded .
:img-circle ..
:img-thumbnail
).. (..
:

[email protected] /

) : : ie-8 ) curve( (..

img-circle

img-thumbnail

img-rounded

[email protected] /

helper classes ..
..
:Contextual colors (1
..*_^..
.. .. hover
...^_^ .. :

[email protected] /

: Contextual backgrounds(2
..
.. text *..*_^ ... bg-
.. hover ...
:

[email protected] /

:Close icon (3 class .. x


alert .. ..
..^_^ close
:

..^_^ .. .. x
close x
;).. &times
.. (HTML

[email protected] /

: caret(4
.. .. .
) .. (DropDown menu
... sup menu


:

..

custom class css


) ^_^(..

[email protected] /

: Quick floats(5 css .. .. float


float left .. right
.. bootstrap )(
.. flaot: * !important
:
( pull-left navbar-left
( pull-right navbar-right
* .. navbar-
.. component *...pull-

[email protected] /

.. .. pull-left ..float: left


.. .. float: right.. hikmat
.. .. ..
*_^...important

[email protected] /

:Clearfix (6 ..
div .. clearfix
.. /
.. clear float ..
css ..clear: both
:

..
clearfix
..
...

[email protected] /

.. .. ..
clearfix .. ..
.. .. ..
.. ..
clearfix .. ..
..
^_^

[email protected] /

: Center content blocks(7


.. block
... block ..
.. .. css
.. block ...margin: 0 auto
bootstrap ^_*
^_^ center-block
) : ..
^_^(

[email protected] /

..

center-block .. span
.. span
.. div .. ..set-block-size
.. max-width width
block ^_^ ..
.. bg-info ..
... block

[email protected] /

: Showing and hiding content(8


.. ..
.. hide .. 2
.. show .. hidden
show & hidden hide
.. screen reader
.. )(
hidden .. hide ..
important
display .. visibility show
... Display: block !important

[email protected] /

.. invisible .
; visibility: hidden
important .. display
**( ... display
visibility css
... 2nees.com
:

[email protected] /

Screen reader and keyboard navigation content(9


.. sr-only
screen reader
.. .. ..SR
..
.. sr-only-focusable
)
( , sr-only
) ... sr-only-focusable 2 ( ..

[email protected] /

: Image replacement(10
.. text-hide
..
.. ico
^_^ ..
:

.. 0
shadow ...

[email protected] /

.. .. .. helper class
... !
..
...
.. ...
.. *_^ ...


[email protected] /

[email protected] /

.. bootstrap mobile first


.. bootstrap
... ..
.. .. ..
.. ..
.. ..
.. ..
...
.. ..
^_^

[email protected] /

*.. visible-*- ) ... (grid


*.. hidden- .. ..
.. ^_^

[email protected] /

3.2 ... bootstrap ..


.. classes

.. css .. ..
.. classes display .. block
inline ^_^ .... inline-block
:

[email protected] /

..

[email protected] /

.. .. ..
.. ..
.. bootstrap class
..

) ).. (:

[email protected] /

[email protected] /

..
bootstrap
) (
.. ^_^:
..
.. bootstrap ) css
... ^_^ (css


[email protected] /

Components


[email protected] /

[email protected] /

Glyphicons )( ...
..
... .. ..

[email protected] /

:
(1 ico ..
ico .. glyphicon ico
..
(2 .. ico
ico
(3 glyphicon
... > <span ...
(4 > <span ..
).. (no text, no child

[email protected] /

[email protected] /

.. ..
component .. Dropdowns
Dropdowns ..
..
... ^_^..
.. bootstrap
dropdowns .. ^_^ dropdown
^_^ ...
^_^

[email protected] /

[email protected] /

:
(1 dropdown .. div
dropdown .. ..
.. relative
data-toggle="dropdown (2 .. attr
..
class="dropdown-menu (3
..
...
.. divider (4 ..

... dropdown ...

[email protected] /

.. ..
:
: Tabindex (1
Tab .. ..1
.. 1- tab
...
:Role (2 ..
screen reader ..
a ..menuitem ..
.. role=button
.. ... screen reader ..

[email protected] /

(2

) ( .. ..
.. ]".. *[role="button
role
... button .. ..
.. > <main .. html5
.. role=main
.. ...
..
.. ..
... .. ^_^ ...

[email protected] /

... ^_^

[email protected] /

.. !
.. bootstrap align ..
dropdown-menu-right ..
... ^_^ ul ul
.. dropdown-menu .. %100 top
left .. 0
dropdown-menu-right ..
Left: auto ... right: 0
^_^ ..

[email protected] /

[email protected] /

.. ^_^ header
..... ^_^ P:...
..
.. ^_^..
.. ..
^_^
) .. (-_-

[email protected] /

.. dropdown-header > <li


.. header ^_^
^_^

[email protected] /

.. Dropdowns
^_^ ...
disabled
>.. <li ^_^

[email protected] /

:
(1 align
.. dropdown-menu-right 3.2
.. bootstrap
.. pull-right *_^..
(2

..
cropped parent ..
.. customized
) css (
...

[email protected] /

(3

) ,(toggle
.. template
..
.. bootstrap.min.js ^_^ ..

.. ..
^_^...
..
^____^


[email protected] /

[email protected] /

Button groups button


.. ^_^ ..
..
..
) ..
3(
) (1


...btn-group

[email protected] /

[email protected] /

.. ..
..
..^_^..
.. ^_^
btn-group 1

^_^

[email protected] /

2
toolbar

[email protected] /

3
Size

[email protected] /

4
Vertical

..

[email protected] /

5
Nesting
Group

.. ..
dropdown
.. relative
btn-group
^_^ relative

[email protected] /

Button groups Justified


^_^ ... btn
.. ..
parent ^_^..
btn-group-justified
) : .. (

[email protected] /

^_^ ... : .. ..
^_^...

[email protected] /

.. btn-group
> <button wrapper ....
:

.. ... _^

[email protected] /

:
(1 btn .. justified
.. btn-group btn btn-
group .. .. btn-group
btn .. Nesting
..
(2 ie-8 border btn .. a
... btn-group
.. ^_^ ..
^_^ .. :


[email protected] /

[email protected] /

.. dropdowns
.. .. Button dropdowns
.. ..
..
^_^ .. ^_^

[email protected] /

.. .. .. ..
.. btn-group !!
.. ^_^
Split button dropdowns
)(toggle
.. ^_^ ...
^_^

[email protected] /

..

*_*..

[email protected] /

.. btn
:
btn-sm btn-xs ....btn-lg
^_^:
^_^

[email protected] /

:2

[email protected] /

..

.. ^_^

[email protected] /

.. Dropup variation
^_^ ..
.. .. .dropup
:

[email protected] /

.. ^_^
.. ^_* ...
.. .. gruop
.. *_^ ..btn
.. ^_^
.. *_*


[email protected] /

[email protected] /

.. .. input group
html <input> tag
input group ..
>) <form .. child ..
> .. ( ...<form input group div
) (wrapper ... input
input
... @ .. twitter name $
...

[email protected] /

) (prepend ) (append :
(1 wrapper div .input-group
(2

(3

input-group-addon span
).. wrapper wrapper
span (...
span append
.. prepend span > <input
.. input ..
.. input .. ..
...

[email protected] /

:
(1 input-group .. form-group
(2

(3

input-group form-group
.. level input-group form-
.. group input-group
.. form-group .. ..
grid class .. input-group
input-group ... grid class

[email protected] /

(4

(5

> <select ><textarea


) webkit
> ( <select
> <textarea ...
form-control
.. input-group ...
..

.. ^_^.. ^_^

[email protected] /

) :1 (

[email protected] /

^_^:

..
: )(prepend
: )(append
: ^_^

[email protected] /

:2

[email protected] /

:3
.. form control
) .. input-group (

...
.. ..

[email protected] /

...Sizing
.. input-form
> ..^_^ <input
.. ..
* ..^_^ ... input-group- ^_*
* : sm ... lg

[email protected] /

: .. html
> <input
Radio/checkbox (1
Button (2
Dropdown Button (3
Segmented button (4
.. ...*_*.. !! ..
... P: ^_^

[email protected] /

: .. radio/checkbox
> <input radio checkbox span
input-group-addon
) : (

[email protected] /

: .. button btn
.. radio/checkbox
wrapper btn
... input-group-btn wrapper
.. *_^ ... input-group
input-group-btn span
...input-group-addon
* : input-group-btn ..
override
btn ><input

[email protected] /

^_^

[email protected] /

.. Buttons with dropdowns : ..


^_^ ..
button
^_^)... .. ^_^(

[email protected] /

.. Segmented buttons :
toggle ..
.. ^_^ dropdown buttons
.. )
.. (

[email protected] /

.. ..
..
..
.. ..
.. bootstrap ..
^_* ..
.. ..
... ^_^


[email protected] /

[email protected] /

Navs
..

..
...
.. bootstrap .. ..
.. nav
active ..
..
..^_^.. ^_^

[email protected] /

,tab tab boot-


strap .. nav-tab
) nav
navs ( .
..

^_^:
active
tab ..

Tab
><ul

[email protected] /

: .. Pills
... nav-pills
:

..
^_^

[email protected] /

.nav-stacked nav-pills
.. ^_^
:
) ^_^(

[email protected] /

..Justified : bootstrap tabs


pills
parent ^_^ ..
... *_^ nav-justified parent
...768px ^_^:

[email protected] /

.. :

6 ^_* .. ...

[email protected] /

: .. justified parent 768..


nav .. *_^ stacked
.. disabled : .. .. -_-
.. nav link ...
... disabled ^_^:
) .. (

[email protected] /

:

.. .. .. disabled )(
!! ..
.. ....
:


^_^

[email protected] /

Dropdown .. ....^_^ nav


.. nav
> <a ..button
> <li .. dropdown ^_^...
:

[email protected] /

.. .. component
.. bootstrap
.. ..
) ( JS ...
.. ^_^ ..


[email protected] /

[email protected] /

.. nav .. navbar
navbar , bootstrap

header ,
,Responsive
..
.. collapse btn
...navbar

[email protected] /

:navbar
(1 <nav> tag
(2 navbar navbar-default
><nav
(3 role=navigation >) <nav
..role (*_^ html5 tag
(4 > <div navbar-header
div > <a .. navebar-brand

.. ..

[email protected] /

(5

) (nav .. navbar ul
nav ....navbar-nav

, / *_^ navbar
.. ..
^_^..

[email protected] /

navbar-default
navbar


..

nav
..
..
nav
navbar-nav
.. nav
.. div .. !!.. ...

[email protected] /

.. .. .. navbar
!! .. nav
navbar .. *_^..
...navbar
(1 bootstrap
,
navbar ...
navbar .. :
( width .
( Responsive ..
( breakpoint media
..query

[email protected] /

(2 collapse navbar-collapse
) ...
(
@grid-float-breakpoint (3
.. breakpoint breakpoint
) ... 768 (LESS
plug-in collapse (4 js
responsive .. navbar

[email protected] /

.. ^_^
^_^ Brand image
img text navbar-
.. brand :

[email protected] /

: .. component align .. navbar


..
navbar-left ^_^.. navbar-right
^_^:

[email protected] /

...Forms : ..Forms .. form


.. navbar .. ^_^.. search

navbar-form .. <form> tag
:^_^ :

[email protected] /

:1 align form left right


..
..form .. navbar-form
..
.. *_^.. form-inline
:2
... navbar
^_____^ bootstrap

[email protected] /

: button ) navbar btn


> ..(.. <form navbar-btn
..*_^ <button> tag
> <a > <input
btn *_^ ... navbar ^_^:

[email protected] /

: text .. navbar
.. navbar bootstrap
.. .navbar-text *_*... <p> tag
:

[email protected] /

.. Non-nav link : *_*


.. nav ..
.. bootstrap .. navbar-link
^_^.. navbar
:

[email protected] /

Fixed to top : ^_^ Fixed to Bottom


^_^ ..
navbar ..
.. ..

navbar-fixed-bottom ... navbar-fixed-top
padding 70.. body top
70 .. bottom
navbar
^_^

[email protected] /

..

^_^:

^_*

fixed
50
)
(
.. scroll

[email protected] /

: bootstrap navbar
.. ... navbar-inverse
:

[email protected] /

.. ) navbar (componant
.. Responsive navbar
.. navbar !!..
Responsive navbar
navbar ..
wrapper
... .collapse, .navbar-collapse ..
ID --- wrapper ..
navbar-toggle data-toggle
.. collapse ^_* ... ^_^

[email protected] /

) .. (:

[email protected] /

: Responsive breakpoint
.. toggle
.. responsive
*_*:

[email protected] /

... data-target
data-target id wrapper
...
navbar .. ..
^______________*
) ... (
:2
:1


[email protected] /

[email protected] /

..Breadcrumbs Breadcrumbs
..
... Home / pages / about us

.. .. )..about us (..
^_^.. ..

.. ^____________^

[email protected] /

.. bootstrap ..
breadcrumb ><ol
^_^ .. ..
^_*
:

[email protected] /

.. ..
next ..^_^ .. prev
... .. Pagination
..
bootstrap ..
..^_^ pagination ... ul

[email protected] /

Pagination ..
.. active
) ( ..
disabled pager
.. .. ^_^:

[email protected] /

.. .. disabled
.. ..
..
)( preventDefault ..
> <a > <span ^_^..
^_^..
:

[email protected] /

.. pager
^_^ ..
pagination-lg ... pagination-sm
:

[email protected] /

.. .. pager
next prev .. ..
.. blog ..
..
pager ...^_^... pagination ^_^


parent

[email protected] /

.. pager pager
..
next previous >... <li
:

[email protected] /

.. disabled .. pagination
.. ^_^

).. breadcrumb
^_^ (.. pagination


[email protected] /

[email protected] /

..bootstrap .. label ..
..
..
..
label *..^_^ label-
..default, primary, info
^_^) : ^_*(

[email protected] /

^_^

[email protected] /

Badges highlight
..
..^_^ ... .. FB
^_^..
^_^ .. ..
badge ... *_^ span span
...
^_^:

[email protected] /

.. Self collapsing
.. )
.. (.. bootstrap :empty
.. css span display:
... none ^_^

[email protected] /

^_^..
... (-_-)_ ie8
... :empty
:2

[email protected] /

..
.. , ^_^ ...
..^_^.. bootstrap
wrapper
... jumbotron

[email protected] /

page-header
>*<h
small ..
:

[email protected] /

.. .. ^_^..
) ..
( ...


[email protected] /

[email protected] /

Thumbnails
.. .. .
bootstrap .. Thumbnails
grid system

html *_^ ...Thumbnails

Thumbnails .. wrapper
*_*

[email protected] /

:


Thumbnails
^___*

[email protected] /

:2 .. wrapper
. html
^_^

[email protected] /

..
..
.. bootstrap
alert
action ..
...
alert
*(success, info, danger, warning)* ... alert-

[email protected] /

^_*..
: alert
.. default

[email protected] /

.. alert alert-
... dismissible
...
.. ..
..
markup .. *_^ html
:

[email protected] /

: .. ... -_- x
template js
^_* *_^ bootstrap.min.js
:2 button data-
dismiss="alert button
... alert
.. ..alert
.. alert-link alert
^_^..

[email protected] /

[email protected] /

^_^..
.. ..
Alert .. thump
... ^_* ..


[email protected] /

[email protected] /


/ ..
.. bootstrap .. css3
.. ie-9 ..
.. .. opera 12 ..

animation transitions
^_^ ... css3
.. *_* Progress bar

[email protected] /

) (:

.. width area-valuenow
.. width .. ..
.. %80 .. 60 .. ^_^
^_^

[email protected] /

:2 .. 60%
.. .. Screen Reader
Progress bar
.. :

[email protected] /

:3
) (%0
width *_^.. 30px Low
..percentages .. ^_^..
:

[email protected] /

[email protected] /

:4 .. ..
.. button
..
*progress-bar-
* warning, info, danger, success :
.. ) : (

[email protected] /

[email protected] /

:5 ..
/ ) .. (Striped
..
..... progress-bar-striped :

[email protected] /

:6 ..
.. ^_^ ..
^_^.. active
:

[email protected] /

.. ^_^..
..
.. .. !!..
^_^ .. progress
bar progress ^_^... ^_*

[email protected] /

.. .. ..
.. ^_^ ..
^_^ ).. (ie8


[email protected] /

[email protected] /

media object
media ..
...
)..
.. bloger .. tweet
...(..

*_^...

[email protected] /

^_^:
..media


^_^

[email protected] /

:2

[email protected] /

..
news articles ..
media .. ul
) (:

[email protected] /

:2 ..
media body
.. :

[email protected] /

bootstrap ..
.. .. list-group
>) <ul( ul
.. ^_^.
*( .. ol .. ^_*
:

[email protected] /

:2 Badges .. *_^ group


.. Badges group bootstrap
.. Badges
^_* .. :

[email protected] /

... :3 .. .. ul..
.. .. list-group-item
a .. *_^.. list-group
... :

[email protected] /

:4 disabled )
.. ( ..
:

[email protected] /

:5 ^_^.. Contextual classes


**___^ list-group-item-
:

[email protected] /

:6 Custom content

[email protected] /

.. .. List
...group
*_* ...
.. media
*_^ obejct


[email protected] /

[email protected] /

panel
.. .. panel
header .. body
panel
bootstrap:
:panel (1
).panel(.
:panel-heading (2
.. panel-title
.

[email protected] /

(3
(4
(5

:panel-body
*_^ panel
:panel-footer .footer
*
*) panel-
info, warning, default, primary, danger, success

) .. ..
(:

[email protected] /

header panel
.. Contextual alternatives
.. panel-info.. ^_* ..
) (5
:

[email protected] /

.. header
border panel .. footer ..
.. footer .. header
... Contextual alternatives
.. ..
...panel
.. table ^_^
*_* ...

[email protected] /

[email protected] /

.. List group ^_*

[email protected] /

.. ^_^ ..
...Responsive embed
embed
.. .. *_^ bootstrap
.. )(ratio
^_^...
: embed > <iframe > <object
>.... <embed

[email protected] /

embed-responsive-item
..
wrapper .. :
:embed-responsive (1
.. ..
(2 embed-responsive-4by3
embed-responsive-16by9
)(scale

[email protected] /

[email protected] /

[email protected] /

well jumbotron
..
.. simple inset highlight well
.. well well-lg well-sm
^_^:

[email protected] /

.. ^_^...
*_* ..

^_^.. ^_^..
.. .. ^_^ Component ..
^_* ..
..
^_^.. ..


[email protected] /

Java Script


[email protected] /

[email protected] /

..
.. ..
...
..
.. bootstrap plug-in ...
..component
.. ..
.. ^_^
.. ^_^

[email protected] /

:
(1 plug-in 12
component ^_^
(2 Plug-In
template .
(3 ) plug-in (
plug-in
.. folder
(4 )
(plug-in bootstrap.min.js
bootstrap.js

[email protected] /

(5

(6
(7

(8

.. ^_^ *.js
.. plug-in
.. ...
bootstrap.min.js
.. bootstrap .
bootstrap.min.js bootstrap.js
.. Plug-in request
^_*
component
attribute ..
toggle ).... tooltip (

[email protected] /

.. button wrapper
.. conflict
^_^
(9 .. Plug-in
jQuery ...
..
js ^_^ plug-in

[email protected] /

.. button wrapper
.. conflict
^_^
(9 .. Plug-in
jQuery ...
..
js ^_^ plug-in
) bootstrap
(bootstrap.min.js

[email protected] /

:Data attributes
( API ... bootstrap

.. ^_^ ..
.
).. 17.html
.(toggle
(
.. .data-api

[email protected] /

data-api namespace event


) (namespace
.. off .. data-api
..toggle .. alert
.. plugIn
.. .alert.data-api
) alert API (.
:

[email protected] /

:Programmatic API ..
API
.. bootstrap

...
:

[email protected] /


....
.. constructor :

** .. *_^ ..
..

[email protected] /

:No conflict
..
namespace ..
.. ..
.. bootstrap
.. framework
..
:

[email protected] /

:JavaScript is disabled

.. *_^ <noscript> tag bootstrap ...

.. PlugIn ..
.. ..
bootstrap ...
... plug-in .. P:


[email protected] /

[email protected] /

Modal
.. Parent .. window
child ^_^ .. header, body, footer
^_^
plug-in .. bootstrap.js
.. ^_^ bootstrap.min.js
plug-in .. modal.js
:
overlapping .. modal modal
..

[email protected] /

^_^

[email protected] /

modal ..

[email protected] /

.. ^_^
.. data-toggle="modal (1 btn link
.. ...modal
.. data-target="#identifier (2 modal
..
(3
) $('#identifier').modal(options
modal ..
..target option ..

[email protected] /

..
^_*
(4 .. modal modal
wrapper *_^ modal
(5 fade
^_^ .. *_^ toggle
aria-labelledby (6 modal
).. *_^ (modal

[email protected] /

<div class="modal-header"> (7 wrapper


header *_^ modal
(8 .. close
.. modal
(9 data-dismiss="modal
.. modal .. html5
:modal-body (10 bootstrap
body .. modal

[email protected] /

(11 .. modal-footer
footer .. *_^ modal
(12 .. model dialog wrapper body
header .. footer
modal-lg ...modal-sm ^_^modal

[email protected] /

(13 href=:#modal-id data-


target ^_*

.. ^_^.. ^_^
...*_^ option
option
).. modal
^_^(
^_*

[email protected] /

:backdrop (1
modal true.. .. false static
.. true modal
.. modal false
static modal
...modal ^_^

[email protected] /

[email protected] /

:keyboard (2 modal
.. *_^.. Escape true.. .. false
.. false
.. Escape ... true
:

[email protected] /

(3 .. show modal
.. true or false
.. ... true initialized
modal *_^ modal
:

... .. click
$(document).ready(.

[email protected] /

:
..
*.. data- * ) backdrop .. keyboard(
:

.. .. Methods
^_^.. model

[email protected] /

method ) option
.. method * data-
(.. Attribute option toggle show
... hide
:

[email protected] /

.. .. modal
^_^ modal event
.. event hook
.. function
..
4:
:show.bs.modal (1 show modal
:shown.bs.modal (2 modal
:hide.bs.modal (3 hide modal
:hidden.bs.modal (4 modal
..

[email protected] /


[email protected] /

[email protected] /

.. ..
..
.. .. data-
.. toggle="dropdown data-api
toggle .. ...
^_^...

....show.bs.modal
toggle
)( $('.dropdown-toggle').dropdown
data-toggle ..
*_% Data-toggle

[email protected] /

plug-in ^_^.. active


nav scrolling
..
active ..
...plug-in ^_* ...
*( : .. plug-in
) scrollSpy.js (
... bootstrap.min.js
:2 .. plug-in
... nav

[email protected] /

:3 relative
... plug-in
) ..
:(...

[email protected] /

[email protected] /

:
: data-spy="scroll(1
scrolling ...
.. body
scrolling >.... <body
:data-target (2
spy .. id
parent action ..
(3 id .. id
scroll .. scrolling
id *_^.. href

[email protected] /

:data-offset (4
) ( .. action target
... 0 target
.. 10 ..
..

..

[email protected] /

..method
refresh spy
DOM
.. .. spy
... refresh :

[email protected] /

.. event event
.. active.bs.scrollspy event
) (
:


[email protected] /

[email protected] /

tabs .. ..
.. tab
... tab ...
...
tab
..
tab

tab
selector ..

[email protected] /

) (:
.. ..
html
.. .. active fade
.. in
*_^... active

[email protected] /

fade .. ^_* ..
^_^
event :
:show.bs.tab (1 tab
:shown.bs.tab (2 tab
.. ^_^:

[email protected] /

tooltip
event
... hover tooltip .. css3
bootstrap 3 .. *_^..
:

[email protected] /

.. .. data-toggle
*_^.. tooltip
data-placement
^_^ tooltip
title .. *_^ tooltip

[email protected] /

:1 tooltip
.. ..
.. performance
:2 tooltip html
).. (initialized :
.. }{ option
selector
*_^ tooltip

[email protected] /

:3 disabled
tooltip .. div
wrapper tooltip ..
disabled ... *_^.. button
:

[email protected] /

:4 selector trigger
tooltip selector
^_^) ..
.. P:.. ..
^_&(

[email protected] /

.. Options
^_^
:animation (1 ... fade
... true true or false
.. fade
... false
:delay (2 .. object
*_^ .. tooltip
.. hide, show object
.. ) : (ms

[email protected] /

:html (3 true .. false


...false html
.. tooltip .. true
XSS *_^..
:

[email protected] /

:placement (4 tooltip
... placement
string .. function
:

function

..

[email protected] /

:Template (5 . tooltip
:

.. wrapper
.. tooltip
.. .. template
:

[email protected] /

. ..
.. .. .. tooltip
^_* ...
^_^

[email protected] /

:title (6 tooltip
.. ...
title .. html html
^_^ ... :

[email protected] /

:trigger (7 option
action tooltip
..
... click .. hover
:

[email protected] /

.. Methods
.. toottip :
... Show, hide, toggle, destroy
:show (1 tooltip
:hide (2 tooltip
hide
:toggle (3 show
:destroy (4 ).. tooltip
.. .. (..enable
:Enable (5 tooltip
^_* ) ((Re-)enable

[email protected] /

tooltip
^_*

[email protected] /

^_^.. event
tooltip
:show.bs.tooltip (1 show
hide // // // //
// hide.bs.tooltip (2
// tooltip
// shown.bs.tooltip (3
// // //
// hidden.bs.tooltip (4
:

[email protected] /

.. ^_^
,
.. css ..,
template
tooltip ... *_^...
^_^ ) (:


[email protected] /

[email protected] /

Popover tooltip ..
.. tooltip
popover
^_*...
:
(1 tooltip.js ).. popover
( ..
(2 initialize ... popover

[email protected] /

. ^_^ popover

[email protected] /

tooltip popover
*_*
(1
(2
(3

:title ..
:content ..
data-trigger="focus trigger
popover click
hover ...foucs focus
^_*.. focus
> <a .. button
...

[email protected] /

option .. tooltip
:
:container (1 wrapper
div .. popover window
... *_* resize .. false
) string wrapper (..
:

wrapper

wrap-1

[email protected] /

:content (2 content
data-content

[email protected] /

method
tooltip ..hide, show, toggle, destroy
:

[email protected] /

^_^.. event
popover
:show.bs.tooltip (1 show
hide // // // //
// hide.bs.tooltip (2
// // shown.bs.tooltip (3 popover
// // //
// hidden.bs.tooltip (4
.. ^_^
.. *_* popover :

[email protected] /

..

.. .. ^_^
) : destroy
(-_-..popover


[email protected] /

[email protected] /

alert ..
.. *_^ alert
alert ..
) close
... ( *_^ data-dismiss

[email protected] /

data-dismiss="alert
alert ^_*
alert ...DOM
:
$().alert() (1
$().alert('close') (2

data-api ...

[email protected] /

data-dismiss

[email protected] /

event alert:
:close.bs.alert (1

:closed.bs.alert (2
*_^ ...alert
:

.. ^_^

[email protected] /

*_^ js buttons
bootstrap ..
.. button button
checkbox radio
button ^_^..
.. bootstrap ^_^
: autocomplete="off button
.. firefox
disabledness and checkedness
^_*

[email protected] /

.. :
:*_^ Stateful
^_* ,
data-loading-text=value...
)'.. $().button(string
:

[email protected] /

)' $().button(string ..
loading .. reset loading
)
( .. .. reset )
... (loading
data-complete-text=value
..
)'... $(this).button('complete

[email protected] /

:Single toggle
active ..
...aria-pressed="false or true false
) .. (active true
.. active true
active ^_* .. :
active

[email protected] /

:Checkbox / Radio checkbox radio


btn ..
data-toggle="button *_^ btn-group
:

[email protected] /

.. ..
checked
checkbox .. radio active
label )...
*_*(
.. ^_*


[email protected] /

[email protected] /

^_^ ^_^ .. plugin


..
^_^ ..accordions
^_^:
:collapse (1
) *_*(
:collapse.in (2 *_^
.. in
:collapsing (3 collapse
.. *_* collapse

[email protected] /

[email protected] /

:
(1 collabse
wrapper .. panel panel-default
parent accordion parent
(2 id collapse
... href=#id
(3 data-toggle collabse
(4 panal
collapse .. .. list-group
(5 collapse
in .. collapse ^_^ area=true

[email protected] /

[email protected] /

.. .. *_^.. ^_^
.. ..
.. ..
..
..
..
....*_* Just Google It
:
http://getbootstrap.com/javascript/#carousel
http://getbootstrap.com/javascript/#affix

[email protected] /

(1

(2

bootstrap
.. responsive ..
:
http://getbootstrap.com/gettingstarted/#disable-responsive

custom
..bootstrap
.. .. ..
http://getbootstrap.com/customize/


[email protected] /

[email protected] /

.. ..
... ...
...
,
,
,

.

[email protected] /

..
..

..
..
.. ,,

... ..

.


[email protected] /


[email protected] /

You might also like