阅读背景:

如何防止单击从一个固定的定位元素传递到它后面的元素?

来源:互联网 

I have a fixed positioned header which has a searchbox in it and there is some content behind it (The header has higher z-index). I have an event handler which handles the 'focus' event on the searchbox. The problem is that when I click in the searchbox, this event handler triggers, but the click also passes through the header to the elements behind it. I don't want the click to pass through. I tried I have a fixed positioned header which has a se




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: