## 內聯代碼
通過 `<code>` 標簽包裹內聯樣式的代碼片段。
For example, `<section>` should be wrapped as inline.
~~~html
For example, <code><section></code> should be wrapped as inline.
~~~
## [](https://v3.bootcss.com/css/#code-user-input)用戶輸入
通過 `<kbd>` 標簽標記用戶通過鍵盤輸入的內容。
To switch directories, type cd followed by the name of the directory.
To edit settings, press ctrl + ,
~~~html
To switch directories, type <kbd>cd</kbd> followed by the name of the directory.<br>
To edit settings, press <kbd><kbd>ctrl</kbd> + <kbd>,</kbd></kbd>
~~~
## [](https://v3.bootcss.com/css/#code-block)代碼塊
多行代碼可以使用 `<pre>` 標簽。為了正確的展示代碼,注意將尖括號做轉義處理。
~~~
<p>Sample text here...</p>
~~~
~~~html
<pre><p>Sample text here...</p></pre>
~~~
還可以使用 `.pre-scrollable` 類,其作用是設置 max-height 為 350px ,并在垂直方向展示滾動條。
## [](https://v3.bootcss.com/css/#code-variables)變量
通過 `<var>` 標簽標記變量。
y = mx + b
~~~html
<var>y</var> = <var>m</var><var>x</var> + <var>b</var>
~~~
## [](https://v3.bootcss.com/css/#code-sample-output)程序輸出
通過 `<samp>` 標簽來標記程序輸出的內容。
This text is meant to be treated as sample output from a computer program.
~~~html
<samp>This text is meant to be treated as sample output from a computer program.</samp>
~~~
- 概覽
- 移動設備優先
- 排版與鏈接
- 布局容器
- 柵格系統
- 簡介
- 媒體查詢
- 柵格參數
- 實例:從堆疊到水平排列
- 實例:流式布局容器
- 實例:移動設備和桌面屏幕
- 實例:手機、平板、桌面
- 實例:多余的列(column)將另起一行排列
- 響應式列重置
- 列偏移
- 嵌套列
- 列排序
- Less mixin 和變量
- 排版
- 標題
- 頁面主體
- 內聯文本元素
- 對齊
- 改變大小寫
- 縮略語
- 地址
- 引用
- 列表
- 代碼
- 表格
- 基本表格
- 狀態類
- 響應式表格
- 表單
- 基本表單
- 內聯表單
- 水平排列的表單
- 被支持的控件
- 多選和單選框
- 下拉列表
- 靜態控件
- 焦點、禁用、只讀、校驗狀態
- 添加額外的圖標
- 控件尺寸
- 按鈕
- 圖片
- 響應式圖片
- 圖片形狀
- 輔助類
- 關閉按鈕和三角符號
- 快速浮動
- 讓內容塊居中
- 清除浮動
- 顯示或隱藏內容
- 屏幕閱讀器和鍵盤導航
- 圖片替換