【发布时间】:2017-09-08 23:08:23
【问题描述】:
我要做的是创建一个看起来像 bash 终端的 <pre> 标记 - 黑色背景和白色字母,单间距字体。
pre.bash {
background-color: black;
color: white;
font-size: medium ;
font-family: Consolas,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New, monospace;
display: inline;
}
<pre class="bash">
-bash-3.2$ groups
unixuser feegroup figroup fogroup fumgroup
</pre>
【问题讨论】:
-
这是我的廉价工作
-bash-3.2$ groups unixuser pbunityp pbuniprd pbarcd pbarcp pbuningp
-
如果你需要一个可编辑的“假”终端界面,看看这个:stackoverflow.com/questions/12905726/…