aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/htmlspanelement/index.html
blob: 2b23419712923c4141c9bd7e28daf7e93f929b23 (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
56
57
58
59
60
61
---
title: HTMLSpanElement
slug: Web/API/HTMLSpanElement
tags:
  - API
  - DOM
  - Interface
  - Reference
translation_of: Web/API/HTMLSpanElement
---
<div>
<div>{{APIRef("HTML DOM")}}</div>
</div>

<p>The <strong><code><span class="external">HTMLSpanElement</span></code></strong> interface represents a {{HTMLElement("span")}} element and derives from the {{ domxref("HTMLElement") }} interface, but without implementing any additional properties or methods.</p>

<p>{{InheritanceDiagram(600, 120)}}</p>

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

<p><em>无特定属性;从其父元素{{domxref("HTMLElement")}}继承属性。</em></p>

<h2 id="方法">方法</h2>

<p><em>无特定方法;从其父元素{{domxref("HTMLElement")}}继承方法。</em></p>

<h2 id="说明">说明</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
  <tr>
   <td>{{SpecName('HTML WHATWG', "text-level-semantics.html#the-span-element", "HTMLSpanElement")}}</td>
   <td>{{Spec2('HTML WHATWG')}}</td>
   <td>No change from {{SpecName("HTML5 W3C")}}.</td>
  </tr>
  <tr>
   <td>{{SpecName('HTML5 W3C', "text-level-semantics.html#the-span-element", "HTMLSpanElement")}}</td>
   <td>{{Spec2('HTML5 W3C')}}</td>
   <td>Initial definition, as {{HTMLElement("span")}} was associated with an {{domxref("HTMLElement")}} before that.</td>
  </tr>
 </tbody>
</table>

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



<p>{{Compat("api.HTMLSpanElement")}}</p>

<h2 id="另请参阅">另请参阅</h2>

<ul>
 <li>The HTML element implementing this interface: {{HTMLElement("span")}}.</li>
</ul>

<div> </div>