强制attr = title弹出框上的on元素 [英] Force the attr=title popup an on element

查看:51
本文介绍了强制attr = title弹出框上的on元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法,我可以强制元素在元素悬停时显示标题"弹出窗口.

Is there a way, I can force a element to show the "title" popup on hover of the element.

或者如果没有办法,我可以配置超时时间,在此时间之前它可以显示标题弹出窗口?

Or if not is there a way, I can configure what is the timeout before which it can show the title popup ?

推荐答案

选项一是按预期使用"title"属性.这使您几乎无法控制.您所能做的就是设置内容.您无法设置样式或触发它.

Option one is that use you the "title" attribute as it is intended. This gives you little control. All you can do is set the content. You can't style or trigger it.

<div title="Can you see this tooltip?">My Content With Tooltip</div>

选择二是使用或构建插件.jQuery有很多负载.这是一个示例.

Option two is to use or build a plugin. There a loads for jQuery. Here is one example.

这篇关于强制attr = title弹出框上的on元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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