标题弹出自动没有延迟

编程入门 行业动态 更新时间:2024-10-27 17:09:37
本文介绍了标题弹出自动没有延迟的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

是有任何机会做一个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 ...更好的方法来做到这一点

更多推荐

标题弹出自动没有延迟

本文发布于:2023-10-06 19:47:13,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1467644.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:弹出   标题

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!