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

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,16 +4,16 @@
</div></div>
<p>The <strong><code>italics()</code></strong> method creates an <a href="/zh-CN/docs/Web/HTML/Element/i" title="HTML元素 &lt;i&gt; 用于表现因某些原因需要区分普通文本的一系列文本。例如技术术语、外文短语或是小说中人物的思想活动等,它的内容通常以斜体显示。"><code>&lt;i&gt;</code></a> HTML element that causes a string to be italic.</p>
<h2 id="Syntax">Syntax</h2>
<pre class="syntaxbox"><code><var>str</var>.italics()</code></pre>
<pre><code class="language-javascript"><code><var>str</var>.italics()</code></code></pre>
<h2 id="Description">Description</h2>
<p>The <code>italics()</code> method embeds a string in an <code>&lt;i&gt;</code> tag: <code>"&lt;i&gt;str&lt;/i&gt;"</code>.</p>
<h2 id="Examples">Examples</h2>
<h3 id="Using_italics()">Using <code>italics()</code></h3>
<p>The following example uses string methods to change the formatting of a string:</p>
<pre class="brush: js">var worldString = 'Hello, world'; console.log(worldString.blink()); // Hello, world
<pre><code class="language-javascript">var worldString = 'Hello, world'; console.log(worldString.blink()); // Hello, world
console.log(worldString.bold()); // <strong>Hello, world</strong>
console.log(worldString.italics()); //<em>Hello, world</em>
console.log(worldString.strike()); // <s>Hello, world</s></pre>
console.log(worldString.strike()); // <s>Hello, world</s></code></pre>
<h2 id="Specifications">Specifications</h2>
<table class="standard-table">
<tbody>