bootstrap快速入门笔记(六)-代码

一,内联代码<code>:For example, <code>&lt;section&gt;</code> should be wrapped as inline.

二,用户输入<kbd>:用户通过键盘输入的内容:

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>

三,<pre>代码块,多行代码可以使用
<pre>&lt;p&gt;Sample text here...&lt;/p&gt;</pre>---效果:<p>Sample text here...</p>
  .pre-scrollable 类,其作用是设置 max-height 为 350px ,并在垂直方向展示滚动条。
四,变量:
1,<var>:
<var>y</var> = <var>m</var><var>x</var> + <var>b</var>
效果:y = mx + b

五,<samp>标签来标记程序输出的内容。
<samp>This text is meant to be treated as sample output from a computer program.</samp>
 
原文地址:https://www.cnblogs.com/937522zy/p/5010072.html