Bootstrap: Быстрое создание современных сайтов
Шрифт:
<dl>
<dt> Coffee </dt>
<dd> black hot drink </dd>
<dt> Milk </dt>
<dd> white cold drink </dd>
</dl>
При этом класс class=«dl-horizontal» выводит ключ-значение в одну строку:
<dl class=«dl-horizontal»>
<dt> Coffee </dt>
<dd> black hot drink </dd>
<dt> Milk </dt>
<dd> white cold drink </dd>
</dl>
Тег <code>
HTML elements: <code> span </code>, <code> section </code>, and <code> div </code>.
Тег <kbd> меняет фон и цвет текста:
Use <kbd> ctrl + p </kbd> to open the Print dialog box.
Тег <pre> меняет фон текста, сохраняя пробелы и переносы:
<pre>
Text in a pre
element
is displayed in a fixed-width
font, and it preserves
both spaces and
line breaks.
</pre>
При этом класс class=«pre-scrollable» устанавливает максимальную высоту 350px и добавляет прокрутку.
Класс class=«list-unstyled» удаляет маркировку и отступы списка:
<ul class=«list-unstyled»>
<li> Coffee </li>
<li> Tea
<ul>
<li> Black tea </li>
<li> Green tea </li>
</ul>
</li>
<li> Milk </li>
</ul>
Класс class=«list-inline» выводит список в одну строку:
<ul class=«list-inline»>
<li> Coffee </li>
<li> Tea </li>
<li> Milk </li>
</ul>
Теги <del> и <s> перечеркивают текст:
Use the s element to indicate <s> text that is no longer relevant </s>.
Use the del element to indicate <del> deleted text </del>.
Теги <u> и <ins> подчеркивают текст:
Use the u element to indicate <u> underlined text </u>.
Use the ins element to indicate <ins> inserted text </ins>.
Тег <samp>
To indicate sample output from a computer program, use the samp element:
<samp> This text is output from a computer program… </samp>
Таблицы
Bootstrap класс. table стилизует HTML таблицу небольшим padding отступом и горизонтальными разделителями:
<table class=«table»>
<thead>
<tr>
<th> Firstname </th>
<th> Lastname </th>
<th> Email </th>
</tr>
</thead>
<tbody>
<tr>
<td> John </td>
<td> Doe </td>
<td>[email protected] </td>
</tr>
<tr>
<td> Mary </td>
<td> Moe </td>
<td>[email protected] </td>
</tr>
<tr>
<td> July </td>
<td> Dooley </td>
<td>[email protected] </td>
</tr>
</tbody>
</table>
< image l:href="#"/>Дополнительно класс class=«table table-striped» добавляет чередующуюся смену фона строк таблицы.
Класс class=«table table-bordered» добавляет разделители к ячейкам таблицы.
Класс class=«table table-hover» добавляет изменение фона при наведении курсора на строку таблицы.
Класс class=«table table-condensed» уменьшает высоту строки.
С помощью классов success, danger, info, active, warning можно выделять цветом строки таблицы.
Контейнер для таблицы <div class=«table-responsive»> добавляет горизонтальную прокрутку для экранов менее 768px.