Firefox不会在禁用的输入字段上显示工具提示 [英] Firefox does not show tooltips on disabled input fields

查看:157
本文介绍了Firefox不会在禁用的输入字段上显示工具提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Firefox不会在已停用的栏位中显示工具提示。

Firefox doesn't display tooltips on disabled fields.

除了Firefox以外,以下显示的是IE / Chrome / Safari中的工具提示:

The following displays tooltip in IE/Chrome/Safari except Firefox:

<input type="text" disabled="disabled" title="tooltip text."/>

为什么Firefox不显示禁用字段上的工具提示?有这方面的工作吗?

Why doesn't Firefox display tooltip on disabled fields? Is there a work around this?

推荐答案

似乎是一个(非常古老,请参阅Mozilla Bugs #274626 #436770

Seems to be a (very old, and very abandoned) bug. See Mozilla Bugs #274626 #436770

我想这也可以解释为预期行为。

I guess this could also be explained as intended behaviour.

一个可怕的解决方法是使用 title 属性将按钮与一个不可见的div重叠, code> z-index ;另一个以某种方式重新激活按钮'onmouseover',但巧妙拦截和垃圾任何点击事件上的按钮。

One horrible Workaround that comes to mind is to overlap the button with an invisible div with a title attribute using z-index; another to somehow re-activate the button 'onmouseover' but to cleverly intercept and trash any click event on that button.

这篇关于Firefox不会在禁用的输入字段上显示工具提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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