How can I set CSS only for specific IE browsers?

后端 未结 7 2249
庸人自扰
庸人自扰 2020-12-13 22:24

I have a CSS/jQuery Checkbox style script: http://jsfiddle.net/BwaCD/

The problem is, in current browsers in order for the span to float over the input, the input\'s

7条回答
  •  伪装坚强ぢ
    2020-12-13 22:58

    I solved in this way for the grab cursor in Internet Explorer:

    .grab_cursor {
        cursor: grab;
        cursor: -moz-grab;
        cursor: -webkit-grab;
        cursor: url('../img/cursors/openhand.cur'), url('img/cursors/openhand.cur'), n-resize; /* standard: note the different path for the .cur file */
        cursor: url('img/cursors/openhand.cur'), n-resize\9; /* IE 8 and below */
        *cursor: url('img/cursors/openhand.cur'), n-resize; /* IE 7 and below */
        _cursor: url('img/cursors/openhand.cur'), n-resize; /* IE 6 */
    }
    

    In Internet Explorer for Windows up to and including version 8, if a relative URI value is specified in an external style sheet file the base URI is considered to be the URI of the document containing the element and not the URI of the style sheet in which the declaration appears.

    Files tree:

    index.html
    css/style.css -> here the posted code
    img/cursors/openhand.cur
    

    Good references:

    • One
    • Two
    • Three
    • Four

提交回复
热议问题