aboutsummaryrefslogtreecommitdiff
path: root/files/es/web/css/_doublecolon_-moz-range-thumb/index.html
blob: 7439c46cb57a48c9c44647c876a24584d960433c (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
---
title: '::-moz-range-thumb'
slug: 'Web/CSS/::-moz-range-thumb'
tags:
  - CSS
  - No estándar(2)
  - Pseudo-elemento
  - Pseudo-elemento CSS
  - Referencia
translation_of: 'Web/CSS/::-moz-range-thumb'
---
<div>{{CSSRef}}{{Non-standard_header}}</div>

<h2 id="Resumen">Resumen</h2>

<p>El  <a href="/es/docs/Web/CSS/Pseudo-elements">pseudo-elemento </a><code>CSS</code><strong><code> ::-moz-range-thumb</code></strong> representa el elemento que el usuario puede usar en el <em>"camino"</em> marcado por un elemento  {{HTMLElement("input")}} con <code>type="range"</code> para alterar su valor numérico.</p>

<div class="note">
<p>Si se usa  <code>::-moz-range-thumb</code> en cualquier elemento  que no sea  <code>&lt;input type="range"&gt;</code> ni se seleccionará nada ni se conseguirá efecto alguno.</p>
</div>

<h2 id="Syntax">Syntax</h2>

{{csssyntax}}

<h2 id="Ejemplo">Ejemplo</h2>

<h3 id="Contenido_CSS">Contenido CSS</h3>

<pre class="brush: css">input[type=range]::-moz-range-thumb {
  background-color: green;
}
</pre>

<h3 id="Contenido_HTML">Contenido HTML</h3>

<pre class="brush: html">&lt;input type="range" min="0" max="100" step="5" value="50"/&gt;
</pre>

<h3 id="Salida">Salida</h3>

<p>{{EmbedLiveSample("Example", 300, 50)}}</p>

<p>Una barra de progreso que utilizara este estilo se visualizarías de la siguiente manera:</p>

<p><img alt="The thumb of the &lt;input type=right> styled in green" src="https://mdn.mozillademos.org/files/12027/Screen%20Shot%202015-12-04%20at%2013.30.08.png"></p>

<h2 id="Especificaciones">Especificaciones</h2>

<p>No es parte de ninguna especificación. El un pseudo-elemento propietario de Gecko.</p>

<h2 id="Compatibilidad_con_los_distintos_navegadores">Compatibilidad con los distintos navegadores</h2>

<p>{{CompatibilityTable}}</p>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Característica</th>
   <th>Firefox (Gecko)</th>
   <th>Chrome</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari</th>
  </tr>
  <tr>
   <td>Soporte básico</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Característica</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>Android</th>
   <th>IE Phone</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
  </tr>
  <tr>
   <td>Soporte básico</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
  </tr>
 </tbody>
</table>
</div>

<h2 id="Ver_además">Ver además</h2>

<ul>
 <li>Los pseudo-elements usados por Gecko para dar estilo a otras parte de un input con typue="range":
  <ul>
   <li>{{cssxref("::-moz-range-track")}},</li>
   <li>{{cssxref("::-moz-range-progress")}}</li>
  </ul>
 </li>
 <li>Pseudo-elementos similares usados por otras nevagadores:
  <ul>
   <li>{{cssxref("::-ms-thumb")}}, pseudo-elemento soportado por Internet Explorer y Edge.</li>
   <li>{{cssxref("::-webkit-slider-thumb")}}, pseudo-elemento souportado por WebKit y Blink (Safari, Chrome and Opera).</li>
  </ul>
 </li>
 <li><a href="https://css-tricks.com/styling-cross-browser-compatible-range-inputs-css/">CSS-Tricks: Estilos con CSS para input con type="range" en los distintos navegadores.</a></li>
 <li><a href="http://www.quirksmode.org/blog/archives/2015/11/styling_and_scr.html">QuirksMode: Dando estilos y haciendo script con elementos deslizadores.</a></li>
</ul>