mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-12-15 07:06:53 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
@@ -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><small></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><small></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()); // <small>Hello, world</small>
|
||||
console.log(worldString.big()); // <big>Hello, world</big>
|
||||
console.log(worldString.fontsize(7)); // <font size="7">Hello, world</fontsize>
|
||||
</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>
|
||||
|
||||
Reference in New Issue
Block a user