Bootstrap 4参考手册
内容 | Content
代码 | Code
文档和示例,用于显示带引导的内联和多行代码块。
内联码
使用<code>
.请确保转义HTML尖括号。
打开getbootstrap.com上的示例
For example, <code><section></code> should be wrapped as inline.
码块
使用<pre>
s用于多行代码。再一次,为了正确的呈现,一定要避开代码中的任何尖括号。您可以选择添加.pre-scrollable
类,它将设置最大高度350 px并提供y轴滚动条。
打开getbootstrap.com上的示例
<pre><code><p>Sample text here...</p>
<p>And another line of sample text here...</p>
</code></pre>
变量
若要指示变量,请使用<var>
标签。
打开getbootstrap.com上的示例
<var>y</var> = <var>m</var><var>x</var> + <var>b</var>
用户输入
使用<kbd>
指示通常通过键盘输入的输入。
打开getbootstrap.com上的示例
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>
样本输出
若要指示程序的示例输出,请使用<samp>
标签。
打开getbootstrap.com上的示例
<samp>This text is meant to be treated as sample output from a computer program.</samp>
© 2011–2017 Twitter, Inc.
©2011-2017自带作者
根据MIT许可授权的代码。
根据CreativeCommonsAttributionLicense v3.0授权的文档。
内容 | Content相关
Bootstrap 是一套用于 HTML、CSS 和 JS 开发的开源工具集。利用我们提供的 Sass 变量和大量 mixin、响应式栅格系统、可扩展的预制组件、基于 jQuery 的强大的插件系统,能够快速为你的想法开发出原型或者构建整个 app 。
主页 | https://getbootstrap.com/ |
源码 | https://github.com/twbs/bootstrap |
版本 | 4 |
发布版本 | 4.0.0-beta.2 |