aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/html/element/big/index.html
blob: c91a99f0e87f471568d8b401370192ca1db00266 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
title: <big>
slug: Web/HTML/Element/big
translation_of: Web/HTML/Element/big
---
<div>{{obsolete_header}}</div>

<h2 id="概要">概要</h2>

<p>The HTML Big Element (<code>&lt;big&gt;</code>) 会使字体加大一号(例如从小号 (small) 到中号 (medium),从大号 (large) 到加大 (x-large)),最大不超过浏览器的最大字体。</p>

<div class="note">
<p><strong>使用备注:</strong>由于它是纯显示性的,该元素在<a href="/en-US/docs/Web/Guide/HTML/HTML5" title="/en-US/docs/Web/Guide/HTML/HTML5">HTML5</a>中已经被移除,不应当再使用。取而代之,网页开发者应当使用 CSS 属性。 </p>
</div>

<h2 id="属性">属性</h2>

<p>只包含 <a href="/en-US/docs/HTML/global_attributes" title="HTML/global attributes">全局属性</a></p>

<h2 id="示例_1">示例 1</h2>

<pre class="brush:xml">&lt;p&gt;
  This is the first sentence. &lt;big&gt;This whole
  sentence is in bigger letters.&lt;/big&gt;
&lt;/p&gt;</pre>

<h2 id="示例_2_(CSS_版)">示例 2 (CSS 版)</h2>

<pre class="brush:xml">&lt;p&gt;
  This is the first sentence. &lt;span style="font-size:1.2em"&gt;This whole
  sentence is in bigger letters.&lt;/span&gt;
&lt;/p&gt;</pre>

<h3 id="结果">结果</h3>

<p>This is the first sentence. <span style="font-size: 1.2em;">This whole sentence is in bigger letters.</span></p>

<h2 id="DOM_接口">DOM 接口</h2>

<p>该元素实现了 {{domxref('HTMLElement')}}接口。</p>

<div class="note"><strong>实现备注:直到</strong> Gecko 1.9.2, Firefox 为该元素实现了{{domxref('HTMLSpanElement')}}接口。</div>

<h2 id="浏览器兼容">浏览器兼容</h2>

{{Compat("html.elements.big")}}

<h2 id="参见">参见</h2>

<ul>
 <li>{{htmlelement("small")}}, {{htmlelement("font")}}, {{htmlelement("style")}}</li>
 <li>HTML 4.01 Specification: <a class="external" href="http://www.w3.org/TR/html4/present/graphics.html#h-15.2">Font Styles</a></li>
</ul>

<div>{{HTMLRef}}</div>