aboutsummaryrefslogtreecommitdiff
path: root/files/de/web/html/element/progress/index.html
blob: c256dec21af8cc59cb3f7004d3b74719a0acc3bc (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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
---
title: <progress>
slug: Web/HTML/Element/progress
tags:
  - Element
  - HTML
  - HTML Formulare
  - HTML5
  - Referenz
  - Web
translation_of: Web/HTML/Element/progress
---
<h2 id="Übersicht">Übersicht</h2>

<p>Das <strong>HTML<em> </em><code>&lt;progress&gt;</code> Element</strong> wird benutzt, um den Fortschritt einer Aufgabe zu visualisieren. Während die Einzelheiten dem Browser überlassen werden, wird es üblicherweise als Fortschrittsanzeige angezeigt. Javascript kann den Wert der Fortschrittsanzeige manipulieren.</p>

<table class="properties">
 <tbody>
  <tr>
   <th scope="row"><a href="/en-US/docs/Web/HTML/Content_categories" title="HTML/Content_categories">Inhalt Kategorien</a></th>
   <td><a href="/en-US/docs/Web/HTML/Content_categories#Flow_content" title="HTML/Content categories#Flow content">Fließender Inhalt</a>, <a href="/en-US/docs/Web/HTML/Content_categories#Phrasing_content" title="HTML/Content_categories#Phrasing_content">Formuliereder Inhalt</a>, bezeichbarer Inhalt, fühlbarer Inhalt.</td>
  </tr>
  <tr>
   <th scope="row">Erlaubter Inhalt</th>
   <td><a href="/en-US/docs/Web/HTML/Content_categories#Phrasing_content" title="HTML/Content_categories#Phrasing_content">Formulierender Inhalt</a>, doch es darf kein <code>&lt;progress&gt;</code> Element unter seinen Nachfahren sein.</td>
  </tr>
  <tr>
   <th scope="row">Tag Wegfall</th>
   <td>{{no_tag_omission}}</td>
  </tr>
  <tr>
   <th scope="row">Erlaubte Elternelemente</th>
   <td>Alle Elemente, die <a href="/en-US/docs/Web/HTML/Content_categories#Phrasing_content" title="HTML/Content_categories#Phrasing_content">formuliereden Inhalt</a> akzeptieren.</td>
  </tr>
  <tr>
   <th scope="row">DOM-Schnittstelle</th>
   <td>{{domxref("HTMLProgressElement")}}</td>
  </tr>
 </tbody>
</table>

<h2 id="Attribute">Attribute</h2>

<p><span style="line-height: 21px;">Das Element enthält die </span><a href="/en-US/docs/Web/HTML/Global_attributes" style="line-height: 21px;" title="HTML/Global attributes">globalen Attribute</a><span style="line-height: 21px;">.</span></p>

<dl>
 <dt>{{ htmlattrdef("max") }}</dt>
 <dd>Das Attribut beschreibt, wie viel Arbeit die Aufgabe, angezeigt bei dem <code>progress</code> Element, benötigt. Das <code>max</code> Attribut, wenn vorhanden, muss größer als Null sein und eine gültige Zahl binnen floating point number sein.</dd>
 <dt>{{ htmlattrdef("value") }}</dt>
 <dd>Das Atttribut gibt an, wie viel Arbeit der gesamten Aufgabe schon verrichtet wurde. Es muss eine gültige Zahl binnen floating point number zwischen 0 und <code>max</code> oder zwischen 0 und 1, falls <code>max</code> wegfällt, sein. Falls kein <code>value</code> (Wert) Attribut gegeben ist, ist die Fortschrittsanzeige unbestimmt; dies zeigt an, dass eine Aktivität ohne eine festgelegte ungefähre Restdauer fortläuft.</dd>
</dl>

<p>Sie können die {{ cssxref("-moz-orient") }} Eigenschaft nutzen, um festzulegen, ob die Fortschrittsanzeige horizontal (der Standard) oder vertikal gerendert werden soll. Die {{ cssxref(":indeterminate") }} Pseudo-Klasse kann benutzt werden, um unbestimmte Fortschrittsanzeigen zuzuorden.</p>

<dl>
</dl>

<h2 id="Beispiele">Beispiele</h2>

<pre class="brush: html">&lt;progress value="70" max="100"&gt;70 %&lt;/progress&gt;
</pre>

<h3 id="Resultat">Resultat</h3>

<p>{{ EmbedLiveSample("Beispiele", 200, 50) }}</p>

<p>Das Endergebnis sieht auf Mac OS X so aus:</p>

<p><img alt="The progress bar seen in OS X Mavericks" class="default internal" src="https://mdn.mozillademos.org/files/6863/Screenshot%202014-01-30%2011.14.30.png" style="height: 24px; width: 167px;"></p>

<p>Das Endergebnis sieht auf Windows so aus:</p>

<p><img alt="progress-firefox.JPG" class="default internal" src="/@api/deki/files/6031/=progress-firefox.JPG"></p>

<h3 id="Zusätzliche_Bespiele">Zusätzliche Bespiele</h3>

<p>Siehe auch {{ cssxref("-moz-orient") }}.</p>

<h2 id="Specifications" name="Specifications">Spezifikationen</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Spezifikation</th>
   <th scope="col">Status</th>
   <th scope="col">Kommentar</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName('HTML WHATWG', 'the-button-element.html#the-progress-element', '&lt;progress&gt;')}}</td>
   <td>{{Spec2('HTML WHATWG')}}</td>
   <td></td>
  </tr>
  <tr>
   <td>{{SpecName('HTML5 W3C', 'forms.html#the-progress-element', '&lt;progress&gt;')}}</td>
   <td>{{Spec2('HTML5 W3C')}}</td>
   <td>Ursprünliche Definition</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_Kompatibilität">Browser Kompatibilität</h2>

<p>{{ CompatibilityTable() }}</p>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Funktion</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari</th>
  </tr>
  <tr>
   <td>Basis Unterstützung</td>
   <td>6.0</td>
   <td>{{ CompatGeckoMobile("6.0") }} [1]<br>
    {{ CompatGeckoMobile("14.0")}} [2]</td>
   <td>10</td>
   <td>11.0</td>
   <td>5.2</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Funktion</th>
   <th>Android</th>
   <th>Firefox Mobil (Gecko)</th>
   <th>IE Mobil</th>
   <th>Opera Mobil</th>
   <th>Safari Mobil</th>
  </tr>
  <tr>
   <td>Basis Unterstützung</td>
   <td>{{ CompatVersionUnknown }}</td>
   <td>{{ CompatGeckoMobile("6.0") }} [1]<br>
    {{ CompatGeckoMobile("14.0")}} [2]</td>
   <td>{{ CompatNo() }}</td>
   <td>11.0</td>
   <td>7 [3]</td>
  </tr>
 </tbody>
</table>
</div>

<p>[1] Gecko liefert das {{ cssxref("::-moz-progress-bar") }} Pseudo-Element, welches Sie das Aussehen des Inneren der Fortschrittsanzeige verändern lässt, wie groß der Fortschritt schon ist.<br>
 Vor Gecko 14.0 {{ geckoRelease("14.0") }} wurde das <code>&lt;progress&gt;</code> Element inkorrekterweise als ein Formularelement klassifiziert und hatte daher ein <code>form</code> Attribut. Dieser Fehler wurde jedoch behoben.</p>

<p>[2] Gecko liefert das {{ cssxref("::-moz-progress-bar") }} Pseudo-element, welches Sie das Aussehen des Inneren der Fortschrittsanzeige verändern lässt, wie groß der Fortschritt schon ist.</p>

<p>[3] Safari auf iOS unterstützt die unbestimmte Fortschrittsanzeige nicht. (Stattdessen wird 0% Fortschritt angezeigt).</p>

<h2 id="Siehe_auch">Siehe auch</h2>

<ul>
 <li>{{htmlelement("meter")}}</li>
 <li>{{ cssxref(":indeterminate") }}</li>
 <li>{{ cssxref("-moz-orient") }}</li>
 <li>{{ cssxref("::-moz-progress-bar") }}</li>
 <li>{{ cssxref("::-ms-fill") }}</li>
 <li>{{ cssxref("::-webkit-progress-bar") }}</li>
 <li>{{ cssxref("::-webkit-progress-value") }}</li>
 <li>{{ cssxref("::-webkit-progress-inner-element") }}</li>
</ul>

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