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

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

@@ -7,7 +7,7 @@
<p><strong>Usage note:</strong> The &lt;font&gt; element has been removed in <a href="/en-US/docs/Web/Guide/HTML/HTML5">HTML5</a> and shouldn't be used anymore. Instead web developers should use <a href="/en-US/docs/Web/CSS">CSS</a> properties.</p>
</div>
<h2 id="语法">语法</h2>
<pre class="syntaxbox"><code><var>str</var>.fontsize(<var>size</var>)</code></pre>
<pre><code class="language-javascript"><code><var>str</var>.fontsize(<var>size</var>)</code></code></pre>
<h3 id="参数">参数</h3>
<dl>
<dt><code>size</code></dt>
@@ -20,15 +20,15 @@
<h2 id="示例">示例</h2>
<h3 id="使用fontsize()方法"><code><font face="Open Sans, Arial, sans-serif">使用</font>fontsize()方法</code></h3>
<p>The following example uses string methods to change the size of a string:</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>With the <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> object you can get the element's <code>style</code> attribute and manipulate it more generically, for example:</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>