我在我的页面上有一个,并且我用css对它进行了样式设置。输入类型=“范围”在ipad上点击时留下黑色边框
input[type=range] {
-webkit-appearance: none;
background-color: #1b2b66;
width: 300px;
height: 3px;
position: relative;
top: -9px;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
background-image: url("../images/slider.png");
background-size: 100% auto;
border: 0px;
width: 35px;
height: 35px;
}
问题是:在ipad上当用户单击滑块时,黑色边框围绕图像。我如何隐藏这个?
我知道iPad上的图像和风格。特征检测如何帮助我? – FunkyMonk91
如果Safari知道如何呈现'',我们通常不会尝试覆盖它们的外观。 – Blaise