:hover works only on lower part of rotateX transformed div

家住魔仙堡 提交于 2019-12-23 20:32:42

问题


I have div with CSS rotateX transform applied to it:

-webkit-transform: perspective(500px)  rotateX(60deg) rotateY(60deg) ;

and a bunch of smaller div's floated in it, with :hover rule applied to them. The problem is that only half of inner divs react to :hover event.

JsFiddle: http://jsfiddle.net/fNxgn/4/


回答1:


if you remove in css height: 200px all block will react hover event



来源:https://stackoverflow.com/questions/10534697/hover-works-only-on-lower-part-of-rotatex-transformed-div

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!