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

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,7 +4,7 @@
</div></div>
<p><strong><code>small()</code></strong> 方法的作用是创建一个使字符串显示小号字体的 <a href="/zh-CN/docs/Web/HTML/Element/small" title="HTML 中的元素將使文本的字体变小一号。(例如从大变成中等,从中等变成小,从小变成超小)。在HTML5中除了它的样式含义这个元素被重新定义为表示边注释和附属细则包括版权和法律文本。"><code>&lt;small&gt;</code></a> 标签。</p>
<h2 id="语法">语法</h2>
<pre class="syntaxbox"><code><var>str</var>.small()</code></pre>
<pre><code class="language-javascript"><code><var>str</var>.small()</code></code></pre>
<h3 id="返回值">返回值</h3>
<p>带有 <a href="/zh-CN/docs/Web/HTML/Element/small" title="HTML 中的元素將使文本的字体变小一号。(例如从大变成中等,从中等变成小,从小变成超小)。在HTML5中除了它的样式含义这个元素被重新定义为表示边注释和附属细则包括版权和法律文本。"><code>&lt;small&gt;</code></a> 标签的字符串。</p>
<h2 id="描述">描述</h2>
@@ -12,15 +12,15 @@
<h2 id="示例">示例</h2>
<h3 id="使用small()函数"><code>使用small()函数</code></h3>
<p>为了改变一个字符串的字体大小,下面的例子使用了字符串中的方法:</p>
<pre class="brush: js">var worldString = 'Hello, world';
<pre><code class="language-javascript">var worldString = 'Hello, world';
console.log(worldString.small()); // &lt;small&gt;Hello, world&lt;/small&gt;
console.log(worldString.big()); // &lt;big&gt;Hello, world&lt;/big&gt;
console.log(worldString.fontsize(7)); // &lt;font size="7"&gt;Hello, world&lt;/fontsize&gt;
</pre>
</code></pre>
<p>使用<a href="/zh-CN/docs/Web/API/HTMLElement/style" title="HTMLElement.style 属性返回一个 CSSStyleDeclaration 对象表示元素的 内联style 属性attribute但忽略任何样式表应用的属性。 通过 style 可以访问的 CSS 属性列表可以查看 CSS Properties Reference。"><code>element.style</code></a>对象,你能更加一般地获得和操作该元素的属性,比如:</p>
<pre class="brush: js">document.getElementById('yourElemId').style.fontSize = '0.7em';
</pre>
<pre><code class="language-javascript">document.getElementById('yourElemId').style.fontSize = '0.7em';
</code></pre>
<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>