div class = container style = padding: 100px 50px 10px; button type = button class = btn btn-default popover-show
编程学习网为您整理以下代码实例,主要实现:Bootstrap Popover插件方法,希望可以帮到各位朋友。
<div class = "container" style = "padding: 100px 50px 10px;" >
<button type = "button" class = "btn btn-default popover-show"
Title = "Popover Title" data-container = "body"
data-toggle = "popover" data-placement = "left"
data-content = "Some content in Popover with show method">
Popover on left
</button>
<button type = "button" class = "btn btn-primary popover-hIDe"
Title = "Popover Title" data-container = "body"
data-toggle = "popover" data-placement = "top"
data-content = "Some content in Popover-hIDe method">
Popover on top
</button>
<button type = "button" class = "btn btn-success popover-destroy"
Title = "Popover Title" data-container = "body"
data-toggle = "popover" data-placement = "bottom"
data-content = "Some content in Popover-destroy method">
Popover on bottom
</button>
<button type = "button" class = "btn btn-warning popover-toggle"
Title = "Popover Title" data-container = "body"
data-toggle = "popover" data-placement = "top"
data-content = "Some content in Popover-toggle method">
Popover on right
</button>
<br><br><br><br><br><br>
<p class = "popover-options">
<a href = "#" type = "button" class = "btn btn-warning"
Title = "<h2>Title</h2>" data-container = "body"
data-toggle = "popover" data-content = "
<h4>Some content in Popover-options method</h4>">
Popover
</a>
</p>
<script>
$(function () { $('.popover-show').popover('show');});
$(function () { $('.popover-hIDe').popover('hIDe');});
$(function () { $('.popover-destroy').popover('destroy');});
$(function () { $('.popover-toggle').popover('toggle');});
$(function () { $(".popover-options a").popover({HTML : true });});
</script>
</div>
沃梦达教程
本文标题为:Bootstrap Popover插件方法
基础教程推荐
猜你喜欢
- Bootstrap垂直堆栈选项卡 1970-01-01
- Bootstrap table-hover类 1970-01-01
- CSS加载社交按钮 1970-01-01
- Bootstrap创建下拉菜单 1970-01-01
- Bootstrap向表中添加更密集的信息 1970-01-01
- Bootstrap .helper类 1970-01-01
- CSS结合样式 1970-01-01
- D3.js selectAll()用法 2022-07-13
- Bootstrap clearfix类 1970-01-01
- Bootstrap .pagination-sm类 1970-01-01