按钮:悬停在 Firefox 中不起作用 [英] Button:hover not working in Firefox

查看:24
本文介绍了按钮:悬停在 Firefox 中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到的问题是悬停在 Firefox 中不起作用!它适用于 Chrome、IE 9、IE 8 和 IE 7.有人知道这个问题以及如何解决它吗?

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?

CSS:
.row 按钮 span:hover {背景位置:左下角;边框:1px 实心 #2b2b2b;}

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

推荐答案

看起来悬停事件没有被传递到 span.

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

尝试选择 button:hover span 而不是 button span:hover

这是一个 JSFiddle,通过执行上述操作可以正常工作:http://jsfiddle.net/3j7G5/

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

这篇关于按钮:悬停在 Firefox 中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆