2014-01-12 40 views

回答

0

通過使用popover.show()手動顯示和隱藏它。

首先,您使用data-trigger='manual'設置爲酥料餅手動觸發,或通過JavaScript,然後運行popover.show()(假設酥料餅是你的酥料餅的變量)上$(document).ready

HTML

<button id='yourPopoverButton'>Text</button> 

的Javascript

$('#yourPopoverButton').popover({trigger:'manual'}); 
$(document).ready(
    $('#yourPopoverButton').show(); 
) 
+0

謝謝你,這是工作。 –

+0

我有一個問題,我在我的代碼中添加了一個面板,它不在菜單和彈出窗口之下,你有什麼想法嗎? –

+0

通過「低於」,我假設它隱藏在菜單和popover後面。要調整元素的順序,並執行諸如將面板發送到前面的內容,請查看[Z-Index](http://coding.smashingmagazine.com/2009/09/15/the-z-index-css -property-A-綜合性的外觀/) – Huey

相關問題