The small element is used to create a lighter, secondary text in any heading:
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.
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)
Use the .dl-horizontal class line up the description list side-by-side when the browser window expands:
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.
Firstname | Lastname | |
---|---|---|
John | Doe | john@example.com |
Mary | Moe | mary@example.com |
July | Dooley | july@example.com |
The .table-striped class adds zebra-stripes to a table:
Firstname | Lastname | |
---|---|---|
John | Doe | john@example.com |
Mary | Moe | mary@example.com |
July | Dooley | july@example.com |
The .table-bordered class adds borders to a table:
Firstname | Lastname | |
---|---|---|
John | Doe | john@example.com |
Mary | Moe | mary@example.com |
July | Dooley | july@example.com |
The .table-hover class enables a hover state on table rows:
Firstname | Lastname | |
---|---|---|
John | Doe | john@example.com |
Mary | Moe | mary@example.com |
July | Dooley | july@example.com |
The .table-condensed class makes a table more compact by cutting cell padding in half:
Firstname | Lastname | |
---|---|---|
John | Doe | john@example.com |
Mary | Moe | mary@example.com |
July | Dooley | july@example.com |
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 | |
---|---|---|
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 |
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 |
The .img-rounded class adds rounded corners to an image (not available in IE8):
The .img-circle class shapes the image to a circle (not available in IE8):
The .img-thumbnail class creates a thumbnail of the image:
The .img-responsive class makes the image scale nicely to the parent element (resize the browser window to see the effect):
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.
Create a responsive video and scale it nicely to the parent element with an 16:9 aspect ratio
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 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.
Add the alert-link class to any links inside the alert box to create "matching colored links".
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.
The .fade and .in classes adds a fading effect when closing the alert message.
======Button Groups===========================================================
The .btn-group class creates a button group:
Add class .btn-group-* to size all buttons in a button group.
Use the .btn-group-vertical class to create a vertical button group:
To span the entire width of the screen, use the .btn-group-justified class:
hello worldNest button groups to create drop down menus:
=================================================================
Envelope icon:
Search icon:
Search icon on a button:
Search icon on a styled button:
Print icon:
Print icon on a styled link button: Print
=================================================================
Contextual classes can be used to color the label.
Default Label Primary Label Success Label Info Label Warning Label Danger Label=================================================================
The contextual classes colors the progress bars:
The .progress-bar-striped class adds stripes to the progress bars:
The .active class animates the progress bar:
Create a stacked progress bar by placing multiple bars into the same div with class .progress:
=================================================================
Add class .pagination-lg for larger blocks or .pagination-sm for smaller blocks.
Large:
Default:
Small:
The .breadcrumb class indicates the current page's location within a navigational hierarchy:
=================================================================
=================================================================
Move the mouse over the linked items to see the hover effect:
=================================================================
The panel-group class clears the bottom-margin. Try to remove the class and see what happens.
=================================================================
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".
The .divider class is used to separate links inside the dropdown menu with a thin horizontal line:
The .dropdown-header class is used to add headers inside the dropdown menu:
The .active class adds a blue background color to the active link.
The .disabled class disables a dropdown item (grey text color).
Add the .dropdown-menu-right class to .dropdown-menu to right-align the dropdown menu:
The .dropup class makes the dropdown menu expand upwards instead of downwards:
The .dropdown class is used to indicate a dropdown menu.
Use the .dropdown-menu class to actually build the dropdown menu.
=================================================================
Click on the button to toggle between showing and hiding content.
Click on the button to toggle between showing and hiding content.
Click on the collapsible panel to open and close it.
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.
=================================================================
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.
Use the .nav-stacked class to vertically stack 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.
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).
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.
Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork.
Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater.
=================================================================
Make the viewport larger than 768px wide to see that all of the form elements are inline, left aligned, and the labels are alongside.
Make the viewport larger than 768px wide to see that all of the form elements are inline, left aligned, and the labels are alongside.
=================================================================
The form below contains two input elements; one of type text and one of type password:
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.
It can also be used on the right side of the input:
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:
The form below shows input elements with different heights using .input-lg and .input-sm:
=================================================================
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.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
=================================================================
=================================================================
=================================================================
Toggle popover=================================================================
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