首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

bootstrap tooltip不显示解决方法

2013-09-27 
bootstrap tooltip不显示解决办法a href# onMouseOver$(this).tooltip(show) idxxxx_6449 dat

bootstrap tooltip不显示解决办法
<a href='#' onMouseOver="$(this).tooltip('show')" id='xxxx_6449' data-toggle="tooltip" title="这是提示" data-placement="top">悬停我</a>

?就可以出来了。

官方文档中有这么一句:For performance reasons, the tooltip and popover data-apis are opt in, meaning you must initialize them yourself.

也就是说,处于性能的考虑,你必须手动初始化他们。也就是“$(this).tooltip('show')”这行代码的工作必须手动来做。

?

?

热点排行