mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-12-20 18:45:52 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
@@ -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元素 <i> 用于表现因某些原因需要区分普通文本的一系列文本。例如技术术语、外文短语或是小说中人物的思想活动等,它的内容通常以斜体显示。"><code><i></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><i></code> tag: <code>"<i>str</i>"</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>
|
||||
|
||||
Reference in New Issue
Block a user