aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/css/_doublecolon_-moz-range-track/index.html
blob: a8e2b5b044edd94054e8959d37639ba21919821f (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
---
title: '::-moz-range-track'
slug: 'Web/CSS/::-moz-range-track'
tags:
  - CSS
  - 'CSS:Mozilla Extensions'
  - Non-standard
  - Pseudo-element
  - Reference
  - Selector
translation_of: 'Web/CSS/::-moz-range-track'
---
<div>{{CSSRef}}{{Non-standard_header}}</div>

<p><strong><code>::-moz-range-track</code></strong> <a href="/en-US/docs/Web/CSS">CSS</a> <a href="/en-US/docs/Web/CSS/Pseudo-elements" title="en/CSS/Pseudo-elements">疑似要素</a>は、 <code>type="range"</code> の {{HTMLElement("input")}} でインジケーターがスライドする <em>track</em> (例, 溝) を表す <a href="/en-US/docs/Web/CSS/Mozilla_Extensions">Mozilla 拡張機能</a> です。</p>

<div class="note">
<p><strong>Note:</strong> <code>::-moz-range-track</code> を <code>&lt;input type="range"&gt;</code> 以外で使用すると、何にも一致せず、効果がありません。</p>
</div>

<h2 id="構文">構文</h2>

<pre class="syntaxbox notranslate">{{csssyntax}}</pre>

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

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

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

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

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

<h3 id="結果">結果</h3>

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

<p>このスタイルを使用するプログレスバーは、次のようになります:</p>

<p><img alt="A range with the track green." src="https://mdn.mozillademos.org/files/11999/Screen%20Shot%202015-12-04%20at%2010.14.34.png"></p>

<h2 id="仕様">仕様</h2>

<p>標準の一部ではありません。</p>

<h2 id="ブラウザー実装状況">ブラウザー実装状況</h2>



<p>{{Compat("css.selectors.-moz-range-track")}}</p>

<h2 id="関連項目">関連項目</h2>

<ul>
 <li>The pseudo-elements used by Gecko to style other parts of a range input:
  <ul>
   <li>{{cssxref("::-moz-range-thumb")}} represents the indicator that slides in the groove.</li>
   <li>{{cssxref("::-moz-range-progress")}} represents the lower portion of the track.</li>
  </ul>
 </li>
 <li>Similar pseudo-elements used by other browsers:
  <ul>
   <li>{{cssxref("::-webkit-slider-runnable-track")}}, pseudo-element supported by WebKit and Blink (Safari, Chrome, and Opera)</li>
   <li>{{cssxref("::-ms-track")}}, pseudo-element supported by Internet Explorer and Edge</li>
  </ul>
 </li>
 <li><a href="https://css-tricks.com/styling-cross-browser-compatible-range-inputs-css/">CSS-Tricks: Styling Cross-Browser Compatible Range Inputs with CSS</a></li>
 <li><a href="http://www.quirksmode.org/blog/archives/2015/11/styling_and_scr.html">QuirksMode: Styling and scripting sliders</a></li>
</ul>