我有靜態彈出窗口,使用bootstrap。我想在標題上使用像(x)這樣的關閉圖標,這應該會關閉(或擦除)該彈出窗口。這是靜態的,我不知道我該如何做到這一點。如何在靜態popover中添加關閉圖標(x)?
等你的幫助,已經表示感謝。
這裏是我的代碼:
<style>
.static-popover .popover {
display: block;
}
</style>
<div class="container static-popover">
<div class="col-md-2">
<div class="popover bottom">
<div class="arrow"></div>
<h3 class="popover-title">Popover</h3>
<div class="popover-content">
<p>Here is some content</p>
</div>
</div>
</div>
</div>
這裏是我的小提琴
https://jsfiddle.net/34tsayyL/
Thnks了很多,它的工作。 –
真的嗎?把它放在一個片段中,並添加*嘗試這個*,並不是真正的答案。 :/ –
更新了我的答案:D – ewwink