Учебник по Bootstrap 3

БС ДОМ БС Начать Базовая сетка BS Типография БС Таблицы БС Изображения БС БС Джамботрон БС Уэллс Оповещения о BS Кнопки БС Группы кнопок BS BS Глификоны Значки/этикетки BS Индикаторы прогресса BS БС Пагинация БС пейджер Группы списка BS БС Панели Выпадающие списки БС Свернуть БС Таблетки/таблетки BS БС Навбар БС Формы Входы БС Входы БС 2 Размер ввода BS Медиа-объекты BS БС Карусель BS Модальный Подсказка БС БС Поповер БС прокрутки BS-аффикс БС фильтры

Сетки начальной загрузки

Сетевая система БС BS Сложенный/горизонтальный BS Сетка Малая Сетка BS средняя BS Сетка Большая Примеры сетки BS

Загрузочные темы

Шаблоны БС Тема BS "Просто я" Тема BS "Компания" Тема BS "Группа"

Примеры начальной загрузки

Примеры БС викторина БС Упражнения Сертификат БС

Bootstrap CSS Ref

CSS все классы CSS типографика CSS-кнопки CSS-формы CSS-помощники CSS-изображения CSS-таблицы Выпадающие списки CSS CSS-навигация Глификоны

Bootstrap JS ссылка

JS-аффикс JS-оповещение JS-кнопка JS Карусель Свернуть JS Выпадающий список JS Модальный JS JS всплывающее окно JS прокрутка Вкладка JS JS-подсказка


Справочник по типографике Bootstrap CSS


Настройки Bootstrap по умолчанию

Глобальный размер шрифта Bootstrap по умолчанию составляет 14 пикселей с высотой строки 1,428.

Это применяется к <body> и ко всем абзацам.

Кроме того, все элементы <p> имеют нижнее поле, равное половине вычисленной высоты строки (по умолчанию 10 пикселей).


Типография

Приведенные ниже элементы представляют собой HTML-элементы, стиль которых в Bootstrap немного отличается от стилей браузера по умолчанию. Посмотрите на примеры «Попробуйте», чтобы увидеть результат/различия.

Приведенные ниже классы используются для дальнейшей стилизации элементов.

Element/Class Description Example
<h1> - <h6>
or
.h1 - .h6
h1 - h6 headings
<small> Creates a lighter, secondary text in any heading

Heading (secondary text)

.small Indicates smaller text (set to 85% of the size of the parent): Smaller text
.lead Makes a text stand out: Stand out text
<mark>
or
.mark
Highlights text: Highlighted text
<del> Indicates deleted text: Deleted text
<s> Indicates no longer relevant text: No longer relevant text
<ins> Indicates inserted text: Inserted text
<u> Indicates underlined text: Underlined text
<strong> Indicates bold text: Bold text
<em> Indicates italic text: Italic text
.text-left Indicates left-aligned text
.text-center Indicates center-aligned text
.text-right Indicates right-aligned text
.text-justify Indicates justified text
.text-nowrap Indicates no wrap text
.text-lowercase Indicates lowercased text: LOWERCASED TEXT
.text-uppercase Indicates uppercased text: uppercased text
.text-capitalize Indicates capitalized text: capitalized text
<abbr> The <abbr> element indicates an abbreviation or acronym. Abbreviations with a title attribute have a dotted bottom border and a help cursor on hover, providing additional context on hover.
.initialism Displays the text inside the <abbr> element in a slightly smaller font size
<address> Presents contact information
<blockquote> Indicates blocks of content from another source
.blockquote-reverse Indicates a blockquote with right-aligned content
<ul> Indicates an unordered list
<ol> Indicates an ordered list
.list-unstyled Removes the default list-style and left margin on list items (works on both <ul> and <ol>). This class only applies to immediate children list items (to remove the default list-style from any nested lists, apply this class to any nested lists as well)
.list-inline Places all list items on a single line
<dl> Indicates a description list
.dl-horizontal Lines up the terms and descriptions in the <dl> element side-by-side. Starts off like default <dl>s, but when the browser window expands, it will line up side-by-side

Код

Element/Class Description Example
<var> Indicates variables: x = ab + y
<kbd> Indicates input that is typically entered via the keyboard: CTRL + P
<pre> Indicates multiple lines of code
<pre class="pre-scrollable"> Indicates multiple lines of code with scrollbar
<samp> Indicates sample output from a computer program: Sample output
<code> Indicates inline snippets of code: span, div