Hide or change the value label for a range input in IE10

前端 未结 1 698
日久生厌
日久生厌 2020-12-10 12:13

I have a range input with a custom label displaying text which corresponds to the input\'s value. This works well except that Internet Explorer 10 also displays its own too

相关标签:
1条回答
  • 2020-12-10 12:36

    for WinJS you can use the ::-ms-tooltip pseudo element selector (as mentioned here Remove tooltip from Slider

    Applies one or more styles to the tooltip of a slider (input type=range). Note that only display and visibility style properties are applicable for an -ms-tooltip.

    ...however for IE10 it doesn't appear to work (at least when I tested).

    ::-ms-tooltip is listed in the CSS documentation on MSDN for pseudo-elements however there's no link to a content page discussing the pseudo-element

    I suspect implementation is incomplete...


    EDIT: when I tested the first time it was on Windows 8 Consumer Preview vm, testing on Windows 8 RTM it works!

    EDIT: corrected dash prefix ::-ms-tooltip

    input[type=range]::-ms-tooltip {
        display: none;
    }
    
    0 讨论(0)
提交回复
热议问题