Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. CSS
  3. Reference
  4. Selectors
  5. ::-moz-range-track

::-moz-range-track

Non-standard: This feature is not standardized. We do not recommend using non-standard features in production, as they have limited browser support, and may change or be removed. However, they can be a suitable alternative in specific cases where no standard option exists.

The::-moz-range-trackCSSpseudo-element is aMozilla extension that represents thetrack (i.e., groove) in which the indicator slides in an<input> oftype="range".

Note:Using::-moz-range-track with anything but an<input type="range"> doesn't match anything and has no effect.

Syntax

css
::-moz-range-track {  /* ... */}

Examples

HTML

html
<input type="range" min="0" max="100" step="5" value="50" />

CSS

css
input[type="range"]::-moz-range-track {  background-color: green;}

Result

A range slider using this style might look something like this:

A range with the track green

Specifications

Not part of any standard.

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp