开发者

Button:hover not working in Firefox

开发者 https://www.devze.com 2023-03-05 15:58 出处:网络
I haveing the problem that the hover is not working in Firefox! It is working in Chrome, IE 9, IE 8 and IE 7. Does somewone know this problem and how to fix it?

I haveing the problem that the hover is not working in Firefox! It is working in Chrome, IE 9, IE 8 and IE 7. Does somewone know this problem and how to fix it?

The CSS:

.row button span:hover { background-position : le开发者_StackOverflow中文版ft bottom; border : 1px solid #2b2b2b; }

The HTML:

<button type="submit"><span>Button</span></button>


It looks like the hover event isn't getting fed down to the span.

Try selecting button:hover span instead of button span:hover

Here's a JSFiddle that works okay by doing the above: http://jsfiddle.net/3j7G5/

0

精彩评论

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

关注公众号