Apply a class AND an attribute selector

前端 未结 2 532
北海茫月
北海茫月 2021-01-28 00:14

I want to style this element:


This is working:

input[class*=\"mysl         


        
2条回答
  •  [愿得一人]
    2021-01-28 01:10

    Becuase you are selecting input inside .mySlider. Try this:

    .myslider[type='range'] {
        -webkit-appearance: none;
        width: 100px;
        background-color: black;
        height: 2px;
    }
    

    DEMO

提交回复
热议问题