javascript - Twitter Bootstrap 工具提示数据选择器?

标签 javascript jquery css twitter-bootstrap

Twitter's Bootstrap Tooltip 中使用的数据选择器选项是什么? ?描述是……

If a selector is provided, tooltip objects will be delegated to the specified targets.

但我不明白它的用途或如何使用它。

最佳答案

这类似于使用 jQuery 委托(delegate)方法,如 on()delegate(),以便在编写代码时考虑页面中不存在的工具提示元素正在运行。

绑定(bind)到 body 的示例,因为它始终存在于页面中

$('body').tooltip({
   selector: '.mytooltipClass'

})

关于javascript - Twitter Bootstrap 工具提示数据选择器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13545533/

相关文章:

javascript - 为什么这个 p 标签被添加为新行?

javascript - 悬停时显示列描述

javascript - 将IRC日志写入文件,每天一个文件

jquery - 尝试使用 CSS 和 JQUERY 使多个背景图像在幻灯片中循环

CSS 动画 : Fading images into one another and animating the image and moving it's direction

javascript - 使用 php 将 mysql 数据转换为 javascript 图表

javascript - 如果div的底部可见jquery

javascript - 基于数据表 Jquery 的插件 - 表 - 表中可折叠的问题 - Javascript/HTML

javascript - 带有不可见层的预加载器覆盖页面

javascript - 当悬停被移除或消失时如何应用过渡?