diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:41:15 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:41:15 -0500 |
commit | 4b1a9203c547c019fc5398082ae19a3f3d4c3efe (patch) | |
tree | d4a40e13ceeb9f85479605110a76e7a4d5f3b56b /files/ca/web/css/_doublecolon_-moz-range-thumb/index.html | |
parent | 33058f2b292b3a581333bdfb21b8f671898c5060 (diff) | |
download | translated-content-4b1a9203c547c019fc5398082ae19a3f3d4c3efe.tar.gz translated-content-4b1a9203c547c019fc5398082ae19a3f3d4c3efe.tar.bz2 translated-content-4b1a9203c547c019fc5398082ae19a3f3d4c3efe.zip |
initial commit
Diffstat (limited to 'files/ca/web/css/_doublecolon_-moz-range-thumb/index.html')
-rw-r--r-- | files/ca/web/css/_doublecolon_-moz-range-thumb/index.html | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/files/ca/web/css/_doublecolon_-moz-range-thumb/index.html b/files/ca/web/css/_doublecolon_-moz-range-thumb/index.html new file mode 100644 index 0000000000..dfbfb9f162 --- /dev/null +++ b/files/ca/web/css/_doublecolon_-moz-range-thumb/index.html @@ -0,0 +1,117 @@ +--- +title: '::-moz-range-thumb' +slug: 'Web/CSS/::-moz-range-thumb' +tags: + - CSS + - 'CSS:Mozilla Extensions' + - Non-standard + - Pseudo-element + - Reference +translation_of: 'Web/CSS/::-moz-range-thumb' +--- +<div>{{CSSRef}}{{Non-standard_header}}</div> + +<p>El <a href="/en-US/docs/Web/CSS/Pseudo-elements">pseudo-element</a> <a href="/en-US/docs/Web/CSS">CSS</a> <strong><code>::-moz-range-thumb</code></strong> es una <a href="/en-US/docs/Web/CSS/Mozilla_Extensions">extensió de Mozilla</a> que representa el <em>polze</em> (és a dir, botó virtual) d'un {{HTMLElement("input")}} de <code>type="range"</code>. L'usuari pot moure el polze al llarg de la pista d'entrada per canviar el seu valor numèric.</p> + +<div class="note"> +<p><strong>Nota:</strong> L'ùs <code>::-moz-range-thumb</code> amb qualsevol cosa que no sigui <code><input type="range"></code> no coincideix amb res i no té cap efecte.</p> +</div> + +<h2 id="Sintaxi">Sintaxi</h2> + +<pre class="syntaxbox">{{csssyntax}}</pre> + +<h2 id="Exemple">Exemple</h2> + +<h3 id="HTML">HTML</h3> + +<pre class="brush: html"><input type="range" min="0" max="100" step="5" value="50"/> +</pre> + +<h3 id="CSS">CSS</h3> + +<pre class="brush: css">input[type=range]::-moz-range-thumb { + background-color: green; +} +</pre> + +<h3 id="Resultat">Resultat</h3> + +<p>{{EmbedLiveSample("Example", 300, 50)}}</p> + +<p><span id="result_box" lang="ca"><span>Una barra de progrés que utilitzi aquest estil pot semblar una cosa així</span></span></p> + +<p><img alt="The thumb of the <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="Especificacions">Especificacions</h2> + +<p>No forma part de cap especificació. Es tracta d'un pseudo-element propietari, específic en Gecko.</p> + +<h2 id="Navegadors_compatibles">Navegadors compatibles</h2> + +<p>{{CompatibilityTable}}</p> + +<div id="compat-desktop"> +<table class="compat-table"> + <tbody> + <tr> + <th>Descripció</th> + <th>Firefox (Gecko)</th> + <th>Chrome</th> + <th>Internet Explorer</th> + <th>Opera</th> + <th>Safari</th> + </tr> + <tr> + <td>Suport bàsic</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>Descripció</th> + <th>Firefox Mobile (Gecko)</th> + <th>Android</th> + <th>IE Phone</th> + <th>Opera Mobile</th> + <th>Safari Mobile</th> + </tr> + <tr> + <td>Suport bàsic</td> + <td>{{CompatVersionUnknown}}</td> + <td>{{CompatNo}}</td> + <td>{{CompatNo}}</td> + <td>{{CompatNo}}</td> + <td>{{CompatNo}}</td> + </tr> + </tbody> +</table> +</div> + +<h2 id="Vegeu_també">Vegeu també</h2> + +<ul> + <li>Pseudo-elements utilitzats per Gecko per dissenyar altres parts d'un interval d'entrada: + <ul> + <li>{{cssxref("::-moz-range-track")}} representa la ranura en què es llisca el polze.</li> + <li>{{cssxref("::-moz-range-progress")}} <span class="short_text" id="result_box" lang="ca"><span>representa la part inferior de la pista.</span></span></li> + </ul> + </li> + <li><span id="result_box" lang="ca"><span>Pseudo-elements similars utilitzats per altres navegadors</span></span>: + <ul> + <li>{{cssxref("::-webkit-slider-thumb")}}, <span id="result_box" lang="ca"><span>pseudo-element compatible amb</span></span> WebKit i Blink (Safari, Chrome i Opera).</li> + <li>{{cssxref("::-ms-thumb")}}, <span id="result_box" lang="ca"><span>pseudo-element compatible amb</span></span> Internet Explorer i Edge.</li> + </ul> + </li> + <li><a href="https://css-tricks.com/styling-cross-browser-compatible-range-inputs-css/">Trucs CSS: Estil de les entrades de rang compatible entre navegadors amb CSS.</a></li> + <li><a href="http://www.quirksmode.org/blog/archives/2015/11/styling_and_scr.html">QuirksMode: Controls lliscants disseny i scripts.</a></li> +</ul> |