加入购物车 代码片段
代码也疯狂,赛场任你闯!
Bootstrap文档
行内代码
将代码片段内联包裹在 <code>。请务必转义HTML的尖括号。
<p>Wrap inline snippets of code with <code><code></code>.</p> p Wrap inline snippets of code with <code><code></code>.
用户输入
要切换目录,请键入 cd 后跟目录名称。
要编辑设置,请按 ctrl + ,
<p>
To switch directories, type <kbd>cd</kbd> followed by the name of the directory.
To edit settings, press <kbd><kbd>ctrl</kbd> + <kbd>,</kbd></kbd>
</p> p
| To switch directories, type <kbd>cd</kbd> followed by the name of the directory.
| To edit settings, press <kbd><kbd>ctrl</kbd> + <kbd>,</kbd></kbd>
变量
y = mx + b
<var>y</var> = <var>mx</var> + <var>b</var> var y
| =
var mx
| +
var b
代码块
<p>Sample text here...</p>
<p>And another line of sample text here...</p> <pre>
<code><p>Sample text here...</p>
<p>And another line of sample text here...</p></code>
</pre> pre
code
<p>Sample text here...</p>
<p>And another line of sample text here...</p>
可滚动代码块
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Position</th>
<th>Phone</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>John</td>
<td>Doe</td>
<td>CEO, Founder</td>
<td>+86 138-</td>
</tr>
<tr>
<th scope="row">2</th>
<td>Anna</td>
<td>Cabana</td>
<td>Designer</td>
<td>+86 138-</td>
</tr>
<tr>
<th scope="row">3</th>
<td>Kale</td>
<td>Thornton</td>
<td>Developer</td>
<td>+86 138-</td>
</tr>
<tr>
<th scope="row">4</th>
<td>Jane</td>
<td>Birkins</td>
<td>Support</td>
<td>+86 138-</td>
</tr>
</tbody>
</table>
</div> <pre class="overflow-auto" style="height: 22rem;">
<code>
Code goes here...
</code>
</pre> pre(style="height: 22rem;").overflow-auto
code.
| Code goes here...
代码高亮
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Position</th>
<th>Phone</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>John</td>
<td>Doe</td>
<td>CEO, Founder</td>
<td>+86 138-</td>
</tr>
<tr>
<th scope="row">2</th>
<td>Anna</td>
<td>Cabana</td>
<td>Designer</td>
<td>+86 138-</td>
</tr>
<tr>
<th scope="row">3</th>
<td>Kale</td>
<td>Thornton</td>
<td>Developer</td>
<td>+86 138-</td>
</tr>
</tbody>
</table>
</div> <pre class="line-numbers">
<code class="lang-html">
HTML code goes here...
</code>
</pre> pre.line-numbers
code.lang-html.
| HTML code goes here...