标题弹出自动没有延迟 [英] title popups automatically without delay

查看:114
本文介绍了标题弹出自动没有延迟的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是有任何机会做一个js onclick函数,如果有人会点击该图标自动标题文本将被显示,或者只是当有人移动鼠标,它的标题会没有任何延迟显示?现在,元素的标题在1秒后出来。

is there any chance to do a js onclick function, that if someone will click on that icon automatically the title text will be shown, or just when someone moves mouse over it, title will be shown without any delay? Right now title for element comes out after 1 sec.

推荐答案

您将无法覆盖默认的浏览器行为它显示包含 title 属性文本的工具提示,但您可以按照其他问题的步骤显示和隐藏 div 包含相关文本(该方法使用jQuery和处理hover,但添加点击处理程序不是一个弹性)。

You won't be able to override the default browser behaviour of how it displays tooltips containing the title attribute text, but you could follow the steps on this other question to show and hide a div containing the relevant text (the approach uses jQuery and deals with hover, but adding a click handler isn't much of a stretch).

jQuery Hide / Show with Slide on Hover ...更好的方法来做到这一点

这篇关于标题弹出自动没有延迟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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