Questions tagged «pointer-events»

7
CSS中是否存在`pointer-events:hoverOnly`或类似的东西?
刚刚在玩pointer-eventsCSS中的属性。 我div想让所有鼠标事件都不可见,除了:hover。 因此,所有单击命令都将div转到其下一个,但div可以报告鼠标是否在其上方。 谁能告诉我是否可以做到? HTML: <div class="layer" style="z-index:20; pointer-events:none;">Top layer</div> <div class="layer" style="z-index:10;">Bottom layer</div> CSS: .layer { position:absolute; top:0px; left:0px; height:400px; width:400px; }
103 html  css  pointer-events 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.