how to make a DIV unfocusable?

前端 未结 5 1610
情深已故
情深已故 2021-02-07 10:16

I met a problem about HTML rendering.

In dir=\"rtl\" document of IE7, when JavaScript tries to set focus to a DIV element(with oElement.focus() method), the rendering tu

5条回答
  •  终归单人心
    2021-02-07 10:46

    An easy fix could be done by adding CSS :

    div_selector{
        pointer-events: none;
    }
    

    Or By adding same css via jQuery :

    $(div_selector).css('pointer-events', 'none');

提交回复
热议问题