输入范围类型在IE中无法正常工作

时间:2015-12-30 15:27:17

标签: javascript jquery html5 css3

我有一个范围滑块,但它在Internet Explorer中无法正常工作。

<input id="slider-customer-type" type="range" min="0" max="1" value="0" />

当我在IE中移动它时,它会显示取决于位置的值(0-1)。

如何隐藏显示我的值?

Firefox正常工作,并没有向我显示这些值,这只发生在IE上。

Slider image

2 个答案:

答案 0 :(得分:1)

请参阅此回答 - Hide or change the value label for a range input in IE10

基本上,放

input::-ms-tooltip {
    display: none;
}
在你的CSS中

答案 1 :(得分:1)

你试过这个吗? http://msdn.microsoft.com/en-us/library/windows/apps/hh465805.aspx

示例CSS:

#slider-customer-type::-ms-tooltip {
    display: none;
}

......或@romellem建议; input::-ms-tooltip { display: none; }将禁用您可能拥有的每个<input>的工具提示。

相关问题