开发者

when we mouse over a disabled button in FireFox,The title can't display

开发者 https://www.devze.com 2022-12-25 00:08 出处:网络
whe开发者_如何学JAVAn we mouse over a disabled button in FireFox,The title can\'t display.In IE ,this action is OK.

whe开发者_如何学JAVAn we mouse over a disabled button in FireFox,The title can't display.In IE ,this action is OK.

<input type='button' disabled='disabled' title='show title' value='Test'/>

As above, In IE ,when we mouse over this button ,the "show title" will display. But in firefox it can't work. Somebody can help me?it will be very appreciate.


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.

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.

This is quoted from this post.

0

精彩评论

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