mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2026-02-27 17:44:35 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<p><strong>使用说明:</strong> <big> 元素在<a href="/en-US/docs/Web/Guide/HTML/HTML5">HTML5</a>中已经被移除了,不应该再使用它。 取而代之的是web开发人员应该使用<a href="/en-US/docs/Web/CSS">CSS</a> 属性。</p>
|
||||
</div>
|
||||
<h2 id="语法">语法</h2>
|
||||
<pre class="syntaxbox"><code><var>str</var>.big()</code></pre>
|
||||
<pre><code class="language-javascript"><code><var>str</var>.big()</code></code></pre>
|
||||
<h3 id="返回值">返回值</h3>
|
||||
<p>带有 <a href="/zh-CN/docs/Web/HTML/Element/big" title="The HTML Big Element (<big>) 会使字体加大一号(例如从小号(small)到中号(medium),从大号(large)到加大(x-large)),最大不超过浏览器的最大字体。"><code><big></code></a>标签的字符串。</p>
|
||||
<h2 id="描述">描述</h2>
|
||||
@@ -15,15 +15,15 @@
|
||||
<h2 id="示例">示例</h2>
|
||||
<h3 id="使用big()函数"><code><font face="Open Sans, Arial, sans-serif">使用</font>big()函数</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)); // <fontsize=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> 对象,你能更加一般地获得和操作该元素的style属性,比如:</p>
|
||||
<pre class="brush: js">document.getElementById('yourElemId').style.fontSize = '2em';
|
||||
</pre>
|
||||
<pre><code class="language-javascript">document.getElementById('yourElemId').style.fontSize = '2em';
|
||||
</code></pre>
|
||||
<h2 id="规范">规范</h2>
|
||||
<table class="standard-table">
|
||||
<tbody>
|
||||
|
||||
Reference in New Issue
Block a user