mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-12-17 00:04:34 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<p><strong>Usage note:</strong> The <font> 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()); // <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>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>
|
||||
|
||||
Reference in New Issue
Block a user