<i id='tqikm'><tr id='tqikm'><dt id='tqikm'><q id='tqikm'><span id='tqikm'><b id='tqikm'><form id='tqikm'><ins id='tqikm'></ins><ul id='tqikm'></ul><sub id='tqikm'></sub></form><legend id='tqikm'></legend><bdo id='tqikm'><pre id='tqikm'><center id='tqikm'></center></pre></bdo></b><th id='tqikm'></th></span></q></dt></tr></i><div id='tqikm'><tfoot id='tqikm'></tfoot><dl id='tqikm'><fieldset id='tqikm'></fieldset></dl></div>
    1. <legend id='tqikm'><style id='tqikm'><dir id='tqikm'><q id='tqikm'></q></dir></style></legend>

        <bdo id='tqikm'></bdo><ul id='tqikm'></ul>
    2. <tfoot id='tqikm'></tfoot>

        <small id='tqikm'></small><noframes id='tqikm'>

        自己的图像作为范围上的滑块拇指.如何在 CSS 上设置样式

        时间:2024-04-19

        <small id='pDXrV'></small><noframes id='pDXrV'>

          <tbody id='pDXrV'></tbody>

              <bdo id='pDXrV'></bdo><ul id='pDXrV'></ul>
                <legend id='pDXrV'><style id='pDXrV'><dir id='pDXrV'><q id='pDXrV'></q></dir></style></legend>
              1. <tfoot id='pDXrV'></tfoot>

                  <i id='pDXrV'><tr id='pDXrV'><dt id='pDXrV'><q id='pDXrV'><span id='pDXrV'><b id='pDXrV'><form id='pDXrV'><ins id='pDXrV'></ins><ul id='pDXrV'></ul><sub id='pDXrV'></sub></form><legend id='pDXrV'></legend><bdo id='pDXrV'><pre id='pDXrV'><center id='pDXrV'></center></pre></bdo></b><th id='pDXrV'></th></span></q></dt></tr></i><div id='pDXrV'><tfoot id='pDXrV'></tfoot><dl id='pDXrV'><fieldset id='pDXrV'></fieldset></dl></div>
                  本文介绍了自己的图像作为范围上的滑块拇指.如何在 CSS 上设置样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  How do I set an image as a thumb slider on range input type with css? It doesn't work in Internet Explorer. Chrome and Firefox is ok, but on IE my image is hidden or something? I use ::-ms-thumb, and try to set image as background. how can I fix it with CSS?

                  input[type="range"]::-webkit-slider-thumb 
                      {
                      -webkit-appearance: none;
                      background-image: url('../images/slider.png');
                      opacity: 1;
                      width: 40px;
                      height: 19px;
                      position: relative;
                      top: 0px;
                      z-index: 99;
                   }
                  ::-moz-range-thumb{
                      background-image: url('../images/slider.png');
                      width:40px;
                      height:19px;
                     }
                  ::-ms-thumb{
                      background-image: url('../images/slider.png');
                      width:40px;
                      height:19px;
                      z-index: 9999;
                      display: block;
                      background-color: transparent;
                     }
                  

                  IE, Chrome & Firefox Sliders http://imageshack.com/a/img401/9131/dqwb.jpg

                  解决方案

                  Try using

                  @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
                  
                      /* IE 10/11 specific style */
                      input[type="range"]{
                          -webkit-appearance: none !important;
                          width:497px;
                          height:22px;
                          background-image:url('.png');
                          background-color:rgba(0,0,0,0);
                      }
                      .slider::-webkit-slider-thumb{
                          -webkit-appearance: none !important;
                          height:70px;
                          width:70px;
                          background-image:url('.png');
                      }
                      input[type="range"]::-moz-range-track{
                          -moz-appearance: none;
                          width:497px;
                          height:22px;
                          background-image:url('.png');
                          background-color:rgba(0,0,0,0);
                      }
                      input[type="range"]::moz-range-thumb {
                          -moz-appearance: none;
                          height:70px;
                          width:70px;
                          background-image:none;
                      }
                  
                      .slider
                      {
                      width: 226px;
                      height: 70px;
                      padding: 0px;
                      overflow: visible;
                      }
                      .slider::-ms-thumb
                      {
                      width: 70px;
                      height: 70px;
                      padding: 0px;
                      border: 0px;
                      display:block;
                      z-index: 99999;
                      background-color: transparent;
                      background-image: url('res/img/button.png');
                      background-position: center;
                      }
                      .slider:active::-ms-thumb
                      {
                      background-image: url('res/img/button.png');
                      }
                      .slider::-ms-track
                      {
                      height: 70px;
                      margin: 0px;
                      border: 0px;
                      padding: 0px;
                      color: transparent;
                      background-color: transparent;
                      }
                      .slider::-ms-fill-lower, .slider::-ms-fill-upper
                      {
                      height: 70px;
                      margin: 0px;
                      border: 0px;
                      padding: 0px;
                      background-color: transparent;
                      background-repeat: no-repeat;
                      }
                      .slider::-ms-fill-lower
                      {
                      background-image: url('res/img/slider.png');
                      background-position: left top;
                      }
                      .slider::-ms-fill-upper
                      {
                      background-image: url('res/img/slider.png');
                      background-position: right top;
                      }
                      input[type="range"].slider::-ms-tooltip
                      {
                      display: none;
                      }
                      /* IE 10/11 specific style */  
                  }
                  

                  let me know if it worked

                  这篇关于自己的图像作为范围上的滑块拇指.如何在 CSS 上设置样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:具有放大/缩小过渡效果的全屏滑块 下一篇:如何让滑块的值实时更新?

                  相关文章

                1. <legend id='un2hP'><style id='un2hP'><dir id='un2hP'><q id='un2hP'></q></dir></style></legend>

                    <small id='un2hP'></small><noframes id='un2hP'>

                      <i id='un2hP'><tr id='un2hP'><dt id='un2hP'><q id='un2hP'><span id='un2hP'><b id='un2hP'><form id='un2hP'><ins id='un2hP'></ins><ul id='un2hP'></ul><sub id='un2hP'></sub></form><legend id='un2hP'></legend><bdo id='un2hP'><pre id='un2hP'><center id='un2hP'></center></pre></bdo></b><th id='un2hP'></th></span></q></dt></tr></i><div id='un2hP'><tfoot id='un2hP'></tfoot><dl id='un2hP'><fieldset id='un2hP'></fieldset></dl></div>
                        <bdo id='un2hP'></bdo><ul id='un2hP'></ul>
                      <tfoot id='un2hP'></tfoot>