mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-12-17 08:26:32 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
</div></div>
|
||||
<p>fixed()方法创建了一个<tt>标签元素将字符串包裹起来,从而让这个字符串里面的内容具有固定间距。</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 电报文本元素 (<tt>) 产生一个内联元素,使用浏览器内置的 monotype 字体展示。这个元素用于给文本排版,使其等宽展示,就像电报那样。使用 <code> 元素来展示等宽文本可能更加普遍。"><code><tt></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()); // "<tt>Hello, world</tt>"
|
||||
</pre>
|
||||
</code></pre>
|
||||
<h2 id="说明">说明</h2>
|
||||
<table class="standard-table">
|
||||
<tbody>
|
||||
|
||||
Reference in New Issue
Block a user