Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Responsive Web Design – Frameworks

Responsive Web Design - Frameworks

This section introduces the responsive web design framework Bootstrap.

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.

Example

<

!DOCTYPE

html

<

html

lang=

"en"

<

head

<

title

Bootstrap Example

<

/title

<

meta

charset=

"utf-8"

<

meta

name=

"viewport"

content=

"width=device-width, initial-scale=1"

<

link

rel=

"stylesheet"

href=

"http://apps.bdimg.com/libs/bootstrap/3.3.4/css/bootstrap.min.css"

<

script

src=

"http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"

<

/script

<

script

src=

"http://apps.bdimg.com/libs/bootstrap/3.3.4/js/bootstrap.min.js"

<

/script

<

/head

<

body

<

div

class=

"container"

<

div

class=

"jumbotron"

<

h1

My First Bootstrap Page

<

/h1

<

/div

<

div

class=

"row"

<

div

class=

"col-sm-4"

      ...

   

<

/div

<

div

class=

"col-sm-4"

      ...

   

<

/div

<

div

class=

"col-sm-4"

    ...

   

<

/div

<

/div

<

/div

<

/body

<

/html

Try it »

For more content, please see our Bootstrap tutorial。