“pointer-events: none” does not work in IE9 and IE10

前端 未结 3 872
死守一世寂寞
死守一世寂寞 2020-11-28 09:54

The CSS - property pointer-events: none; works fine in Firefox, but it does not in Internet Explorer 9-10.

Is there a way to achieve the same behaviour

3条回答
  •  盖世英雄少女心
    2020-11-28 10:28

    For crappy IE10, there is another solution, example :

    /* must be over the element that have the action */
    
    .action-container:after {
        content: ' ';
        position: absolute;
        width: 100%; 
        height: 100%;
        top: 0;
        left: 0;
        z-index: 250; 
        background-color: grey; /* must have a color on ie10, if not :after does not exist... */
        opacity: 0;
    }
    

提交回复
热议问题