开发者

:hover not fired for element when parent has CSS3 perspective

开发者 https://www.devze.com 2023-04-09 12:09 出处:网络
In the following example I created on jsfiddle try to hover on gray boxes. You can see each \"开发者_开发技巧Box\" inside the first container gets \":hover\" but for the second one items located on \"

In the following example I created on jsfiddle try to hover on gray boxes. You can see each "开发者_开发技巧Box" inside the first container gets ":hover" but for the second one items located on "the right half of the container" don't get :hover!

(move your mouse over gray boxes)

(Open this in Chrome or Safari because other browsers don't support CSS3 perspective)

Look at here: http://jsfiddle.net/jyBES/10/

This is very strange to me.

Can anybody explain why? Is there any possible workaround for this?


float: left;

in the parent div seems to do the job.

http://jsfiddle.net/lollero/jyBES/11/

0

精彩评论

暂无评论...
验证码 换一张
取 消