是有任何机会做一个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 ...更好的方法来做到这一点
更多推荐
标题弹出自动没有延迟
发布评论