css 'pointer-events' property alternative for IE

前端 未结 12 1493
無奈伤痛
無奈伤痛 2020-11-22 02:45

I have a drop down navigation menu in which some of the title should not navigate to other page when clicked(these title open a drop down menu when clicked on) while others

12条回答
  •  梦谈多话
    2020-11-22 03:27

    Pointer-events is a Mozilla hack and where it has been implemented in Webkit browsers, you can't expect to see it in IE browsers for another million years.

    There is however a solution I found:

    Forwarding Mouse Events Through Layers

    This uses a plugin that uses some not well known/understood properties of Javascript to take the mouse event and send it to another element.

    There is also another Javascript solution here.

    Update for October 2013: apparently it's coming to IE in v11. Source. Thanks Tim.

提交回复
热议问题