aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/html/element/blink/index.html
blob: 93fb766928c0911e7e116b2a8b0109d17273a183 (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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
---
title: <blink>
slug: Web/HTML/Element/blink
translation_of: Web/HTML/Element/blink
---
<div>{{Deprecated_header}} {{obsolete_header}}</div>

<p>HTML Blink Element (<code>&lt;blink&gt;</code>) 不是标准元素,它会使包含其中的文本闪烁。</p>

<div class="warning">
<p class="note"><strong>警告:</strong> 不要使用这个元素,它已经被<strong>淘汰</strong>。闪烁字体不符合无障碍标准,CSS 规范允许浏览器忽略闪烁值。</p>
</div>

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

<p>该元素不被支持,因而实现了{{domxref("HTMLUnknownElement")}} 接口。</p>

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

<pre class="brush:html">&lt;blink&gt;Why would somebody use this?&lt;/blink&gt;
</pre>

<h3 id="结果_(淡化!)">结果 (淡化!)</h3>

<p><img alt="Image:HTMLBlinkElement.gif" src="/@api/deki/files/247/=HTMLBlinkElement.gif"></p>

<h2 id="规范">规范</h2>

<p>该元素不是标准元素,不属于规范的一部分。不信的话,<a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#non-conforming-features"> 你自己来看 HTML 规范文档</a>.</p>

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

<div>{{CompatibilityTable}}</div>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari (WebKit)</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}} [1]</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}} [2]</td>
   <td>{{CompatNo}}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Android</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>IE Phone</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}} [1]</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}} [2]</td>
   <td>{{CompatNo}}</td>
  </tr>
 </tbody>
</table>
</div>

<p>[1] Supported until version 22. Removed in version 23.</p>

<p>[2] Supported until version 12.1. Removed in version 15.0.</p>

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

<ul>
 <li><a href="http://www.montulli.org/theoriginofthe%3Cblink%3Etag">History of the creation of the HTML <code>&lt;blink&gt;</code> element</a>.</li>
 <li>{{cssxref("text-decoration")}}, where a blink value exists, though browsers are not required to effectively make it blink.</li>
 <li>{{htmlelement("marquee")}}, another similar non-standard element.</li>
 <li><a href="/en-US/docs/Web/Guide/CSS/Using_CSS_animations" title="/en-US/docs/Web/Guide/CSS/Using_CSS_animations">CSS animations</a> are the way to go to create such an effect.</li>
</ul>

<p>{{HTMLRef}}</p>