#Text/Typography

h1 Bootstrap heading (36px)

h2 Bootstrap heading (30px)

h3 Bootstrap heading (24px)

h4 Bootstrap heading (18px)

h5 Bootstrap heading (14px)
h6 Bootstrap heading (12px)

Lighter, Secondary Text

The small element is used to create a lighter, secondary text in any heading:

h1 heading secondary text

h2 heading secondary text

h3 heading secondary text

h4 heading secondary text

h5 heading secondary text
h6 heading secondary text

Use the mark element to highlight text.

The WHO was founded in 1948.

注意: /etc/ssh下有一个 ssh_config的文件,注意是修改 sshd_config,不是 ssd_config

For 50 years, WWF has been protecting the future of nature. The world's leading conservation organization, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally.

From WWF's website
Coffee
- black hot drink
Milk
- white cold drink

The following HTML elements: span, section, and div defines a section in a document.

Use ctrl + p to open the Print dialog box.

          Text in a pre element
          is displayed in a fixed-width
          font, and it preserves
          both      spaces and
          line breaks.
        

This text is muted.

This text is important.

This text indicates success.

This text represents some information.

This text represents a warning.

This text represents danger.

This text is important.

This text indicates success.

This text represents some information.

This text represents a warning.

This text represents danger.

This paragraph stands out.

This paragraph is smaller.

Left-aligned text.

Right-aligned text.

Center-aligned text.

Justified text. Justified text. Justified text. Justified text. Justified text. Justified text.

No wrap text. No wrap text. No wrap text. No wrap text.

Tip: Try to resize the browser window to see the behaviour of justify and nowrap.

Lowercased text.

Uppercased text.

Capitalized text.

The WHO was founded in 1948. (normal abbr)

The WHO was founded in 1948. (slightly smaller abbr)

  • Coffee
  • Tea
    • Black tea
    • Green tea
  • Milk
  • Coffee
  • Tea
  • Milk

Use the .dl-horizontal class line up the description list side-by-side when the browser window expands:

Coffee
- black hot drink
Milk
- white cold drink

Tip: Try to resize the browser window to see the behaviour of the description list.

If you add the .pre-scrollable class, the pre element gets a max-height of 350px and provides a y-axis scrollbar:

Text in a pre element
        is displayed in a fixed-width
        font, and it preserves
        both      spaces and
        line breaks.

#Tables

Firstname Lastname Email
John Doe john@example.com
Mary Moe mary@example.com
July Dooley july@example.com

Striped Rows

The .table-striped class adds zebra-stripes to a table:

Firstname Lastname Email
John Doe john@example.com
Mary Moe mary@example.com
July Dooley july@example.com

Bordered Table

The .table-bordered class adds borders to a table:

Firstname Lastname Email
John Doe john@example.com
Mary Moe mary@example.com
July Dooley july@example.com

Hover Rows

The .table-hover class enables a hover state on table rows:

Firstname Lastname Email
John Doe john@example.com
Mary Moe mary@example.com
July Dooley july@example.com

Condensed Table

The .table-condensed class makes a table more compact by cutting cell padding in half:

Firstname Lastname Email
John Doe john@example.com
Mary Moe mary@example.com
July Dooley july@example.com

Contextual Classes

Contextual classes can be used to color table rows or table cells. The classes that can be used are: .active, .success, .info, .warning, and .danger.

Firstname Lastname Email
Default Defaultson def@somemail.com
Success Doe john@example.com
Danger Moe mary@example.com
Info Dooley july@example.com
Warning Refs bo@example.com
Active Activeson act@example.com

Responsive Table

The .table-responsive class creates a responsive table which will scroll horizontally on small devices (under 768px). When viewing on anything larger than 768px wide, there is no difference:

# Firstname Lastname Age City Country
1 Anna Pitt 35 New York USA

#Images

Rounded Corners

The .img-rounded class adds rounded corners to an image (not available in IE8):

Cinque Terre

Circle

The .img-circle class shapes the image to a circle (not available in IE8):

Cinque Terre

Thumbnail

The .img-thumbnail class creates a thumbnail of the image:

Cinque Terre

Image

The .img-responsive class makes the image scale nicely to the parent element (resize the browser window to see the effect):

Chania

Image Gallery

The .thumbnail class can be used to display an image gallery.

The .caption class adds proper padding and a dark grey color to text inside thumbnails.

Click on the images to enlarge them.

Responsive Embed

Create a responsive video and scale it nicely to the parent element with an 16:9 aspect ratio

#Jumbotron and Page Header

Bootstrap Tutorial

Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile-first projects on the web.

This is some text.

This is another text.

Bootstrap Tutorial

Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile-first projects on the web.

This is some text.

This is another text.

This is some text.

This is another text.

#Wells

Well Size

Small Well
Normal Well
Large Well

#Alerts

Alerts

Success! This alert box could indicate a successful or positive action.
Info! This alert box could indicate a neutral informative change or action.
Warning! This alert box could indicate a warning that might need attention.
Danger! This alert box could indicate a dangerous or potentially negative action.

Alert Links

Add the alert-link class to any links inside the alert box to create "matching colored links".

Success! You should read this message.
Info! You should read this message.
Warning! You should read this message.
Danger! You should read this message.

Alerts

The a element with class="close" and data-dismiss="alert" is used to close the alert box.

The alert-dismissible class adds some extra padding to the close button.

× Success! This alert box could indicate a successful or positive action.
× Info! This alert box could indicate a neutral informative change or action.
× Warning! This alert box could indicate a warning that might need attention.
× Danger! This alert box could indicate a dangerous or potentially negative action.

Animated Alerts

The .fade and .in classes adds a fading effect when closing the alert message.

× Success! This alert box could indicate a successful or positive action.
× Info! This alert box could indicate a neutral informative change or action.
× Warning! This alert box could indicate a warning that might need attention.
× Danger! This alert box could indicate a dangerous or potentially negative action.

#Buttons

Button Styles

Button Tags

Link Button

Button Sizes

Block Level Buttons

Large Block Level Buttons

Small Block Level Buttons

Button States

hello hello hello hello hello hello hello hello

======Button Groups===========================================================

Button Group

The .btn-group class creates a button group:

hello hello hello hello hello hello hello hello

Button Groups - Set Sizes

Add class .btn-group-* to size all buttons in a button group.

Large Buttons:

Default Buttons:

Small Buttons:

Extra Small Buttons:

Vertical Button Group

Use the .btn-group-vertical class to create a vertical button group:

hello hello hello hello hello hello hello hello

Justified Button Groups

To span the entire width of the screen, use the .btn-group-justified class:

hello world

Justified Button Groups

Nesting Button Groups

Nest button groups to create drop down menus:

Split Buttons

=================================================================

Glyphicon Examples

Envelope icon:

Envelope icon as a link:

Search icon:

Search icon on a button:

Search icon on a styled button:

Print icon:

Print icon on a styled link button: Print

=================================================================

Badges on Buttons

Labels

Example New

Example New

Example New

Example New

Example New
Example New

Contextual Label Classes

Contextual classes can be used to color the label.

Default Label Primary Label Success Label Info Label Warning Label Danger Label

=================================================================

Basic Progress Bar

70% Complete

Progress Bar With Label

70%

Colored Progress Bars

The contextual classes colors the progress bars:

40% Complete (success)
50% Complete (info)
60% Complete (warning)
70% Complete (danger)

Striped Progress Bars

The .progress-bar-striped class adds stripes to the progress bars:

40% Complete (success)
50% Complete (info)
60% Complete (warning)
70% Complete (danger)

Animated Progress Bar

The .active class animates the progress bar:

40%

Stacked Progress Bars

Create a stacked progress bar by placing multiple bars into the same div with class .progress:

Free Space
Warning
Danger

=================================================================

Pagination - Active State

Add class .active to let the user know which page he/she is on:

Pagination - Disabled State

Add class .disabled if a page for some reason is disabled:

Pagination - Sizing

Add class .pagination-lg for larger blocks or .pagination-sm for smaller blocks.

Large:

Default:

Small:

Breadcrumbs

The .breadcrumb class indicates the current page's location within a navigational hierarchy:

=================================================================

Pager

The .pager class provides previous and next buttons (links):

Pager

The .previous and .next classes align each link to the sides of the page:

=================================================================

Basic List Group

  • First item
  • Second item
  • Third item

List Group With Badges

  • New 12
  • Deleted 5
  • Warnings 3

List Group With Linked Items

Active Item in a List Group

List Group With a Disabled Item

List Group With Contextual Classes

  • First item
  • Second item
  • Third item
  • Fourth item

Linked Items With Contextual Classes

Move the mouse over the linked items to see the hover effect:

=================================================================

Basic Panel

A Basic Panel

Panel Heading/Footer

Panel Heading
Panel Content

Panel Group

The panel-group class clears the bottom-margin. Try to remove the class and see what happens.

Panel Header
Panel Content
Panel Header
Panel Content
Panel Header
Panel Content

Panels with Contextual Classes

Panel with panel-default class
Panel Content
Panel with panel-primary class
Panel Content
Panel with panel-success class
Panel Content
Panel with panel-info class
Panel Content
Panel with panel-warning class
Panel Content
Panel with panel-danger class
Panel Content

=================================================================

Dropdowns

The .dropdown class is used to indicate a dropdown menu.

Use the .dropdown-menu class to actually build the dropdown menu.

To open the dropdown menu, use a button or a link with a class of .dropdown-toggle and data-toggle="dropdown".

Dropdowns

The .divider class is used to separate links inside the dropdown menu with a thin horizontal line:

Dropdowns

The .dropdown-header class is used to add headers inside the dropdown menu:

Dropdowns

The .active class adds a blue background color to the active link.

The .disabled class disables a dropdown item (grey text color).

Dropdowns

Add the .dropdown-menu-right class to .dropdown-menu to right-align the dropdown menu:

Dropdowns

The .dropup class makes the dropdown menu expand upwards instead of downwards:

Dropdowns

The .dropdown class is used to indicate a dropdown menu.

Use the .dropdown-menu class to actually build the dropdown menu.

=================================================================

Simple Collapsible

Click on the button to toggle between showing and hiding content.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Simple Collapsible

Simple collapsible
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Simple Collapsible

Click on the button to toggle between showing and hiding content.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Collapsible Panel

Click on the collapsible panel to open and close it.

Panel Body

Collapsible List Group

Click on the collapsible panel to open and close it.

  • One
  • Two
  • Three

Accordion Example

Note: The data-parent attribute makes sure that all collapsible elements under the specified parent will be closed when one of the collapsible item is shown.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

=================================================================

Inline List

Tabs


Note: This example shows how to create a basic navigation tab. It is not toggleable/dynamic yet (you can't click on the links to display different content)- see the last example in the Bootstrap Tabs and Pills Tutorial to find out how this can be done.

Vertical Pills

Use the .nav-stacked class to vertically stack pills:

Vertical Pills

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam.

Centered Tabs

To center/justify the tabs and pills, use the .nav-justified class. Note that on screens that are smaller than 768px, the list items are stacked (content will remain centered).


Centered Pills

Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.

Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit.

=================================================================

Vertical (basic) form

Inline form

Make the viewport larger than 768px wide to see that all of the form elements are inline, left aligned, and the labels are alongside.

Inline form with .sr-only class

Make the viewport larger than 768px wide to see that all of the form elements are inline, left aligned, and the labels are alongside.

Horizontal form

=================================================================

Form control: input

The form below contains two input elements; one of type text and one of type password:


someone@example.com

Input Groups

The .input-group class is a container to enhance an input by adding an icon, text or a button in front or behind it as a "help text".

The .input-group-addon class attaches an icon or help text next to the input field.


Text

It can also be used on the right side of the input:

Input Group Button

The .input-group class is a container to enhance an input by adding an icon, text or a button in front or behind it as a "help text".

The .input-group-btn class attaches a button next to an input field. This is often used as a search bar:

Horizontal form: control states

Inline form: control states

Input Sizing

The form below shows input elements with different heights using .input-lg and .input-sm:

Legend
A longer block of help text that breaks onto a new line and may extend beyond one line.

=================================================================

Media Object

Use the "media-left" class to left-align a media object. Text that should appear next to the image, is placed inside a container with class="media-body".

Tip: Use the "media-right" class to right-align the media object.


Left-aligned

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.


Right-aligned

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

=================================================================

Carousel Example

=================================================================

Modal Example

Tooltip Example

The data-placement attribute specifies the tooltip position.

=================================================================

Toggle popover

=================================================================

Bootstrap Tutorial

Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile-first projects on the web.

本行内容是在标签内
本行内容是在标签内
本行内容是在标签内,并呈现为斜体

向左对齐文本

居中对齐文本

向右对齐文本

本行内容是减弱的

本行内容带有一个 primary class

本行内容带有一个 success class

本行内容带有一个 info class

本行内容带有一个 warning class

本行内容带有一个 danger class

hello test