1

有点神秘。我有一个静态页面(Magento-客厅中的CMS页面),其中包括bootstrap-tooltip和bootstrap-popover。他们似乎加载/工作正常,因为我可以看到一次弹出式触发器......但是这是问题,事件只发生一次。Twitter-Bootstrap弹出窗口只触发一次(Magento)

在调试尝试中,我在页面的CSS中添加了一个:hover伪类,这会改变背景颜色。当在元素上初始化popover()时,这也仅触发一次。

website是Magento 1.7.2中的一个静态页面。请将鼠标悬停在注释“开源硬件”上方的圆圈中,以查看问题。

谢谢!

回答

1

我不熟悉引导的具体机制(孩子,我的草坪上,下车),但从一个纯JavaScript/DOM点看这似乎您悬停超过以下div

<div id="hardware-overlay" class="img-circle" data-placement="top" data-content="The arduino-compatible hardware connects 
    five environmental sensors to the internet Wirelessly." data-original-title="" title="" style=""> 
</div> 

当你滚降/的酥料饼的鼠标移开,上述div的DOM节点更改为包括style="display:none;"

<div id="hardware-overlay" class="img-circle" data-placement="top" data-content="The arduino-compatible hardware connects 
    five environmental sensors to the internet Wirelessly." data-original-title="" title="" style="display: none; "> 
    </div> 

因为没有显示这个div,没有什么以触发弹出了。如果我从Chrome的调试器控制台

jQuery('#hardware-overlay').css('display','block') 

运行下面的JavaScript我能得到侧翻再次运行(有相同的“只运行一次”行为)

希望帮助缩小问题。

+0

太棒了!谢谢,不知道是什么原因,但那肯定是问题所在。 – x1sc0 2013-05-05 22:03:44

相关问题