语法高亮,滚动条美化,设置页面调整

This commit is contained in:
fofolee
2019-04-19 02:41:09 +08:00
parent 1e8f76c000
commit 359d29ee0b
1590 changed files with 12328 additions and 11441 deletions

View File

@@ -4,8 +4,8 @@
</div></div>
<p>fixed()方法创建了一个&lt;tt&gt;标签元素将字符串包裹起来,从而让这个字符串里面的内容具有固定间距。</p>
<h2 id="语法">语法</h2>
<pre class="syntaxbox">str.fixed()
</pre>
<pre><code class="language-javascript">str.fixed()
</code></pre>
<h3 id="Return_value">Return value</h3>
<p>返回一个表示 <a href="/zh-CN/docs/Web/HTML/Element/tt" title="HTML 电报文本元素 (&lt;tt&gt;) 产生一个内联元素,使用浏览器内置的 monotype 字体展示。这个元素用于给文本排版,使其等宽展示,就像电报那样。使用 &lt;code&gt; 元素来展示等宽文本可能更加普遍。"><code>&lt;tt&gt;</code></a> HTML 元素的字符串。</p>
<h2 id="描述">描述</h2>
@@ -13,9 +13,9 @@
<h2 id="举例">举例</h2>
<h3 id="使用fixed()">使用fixed()</h3>
<p>下面的示例代码使用这个fixed方法来改变字符串的格式</p>
<pre class="brush: js">var worldString = 'Hello, world';
<pre><code class="language-javascript">var worldString = 'Hello, world';
console.log(worldString.fixed()); // "&lt;tt&gt;Hello, world&lt;/tt&gt;"
</pre>
</code></pre>
<h2 id="说明">说明</h2>
<table class="standard-table">
<tbody>