Twitter bootstrap 如何在bootstrap中的popover数据内容字段中添加下拉列表?
我们如何在数据内容字段中添加html列表,而不是纯文本 HTMLTwitter bootstrap 如何在bootstrap中的popover数据内容字段中添加下拉列表?,twitter-bootstrap,Twitter Bootstrap,我们如何在数据内容字段中添加html列表,而不是纯文本 HTML JAVASCRIPT $(函数(){ $(“#示例”).popover({ 标题:“这是默认标题”, 是的, 内容:“测试1测试2” }); }); 有没有办法调用整个css类,在popover的内容中有自己的设计。 <li><a href="#" data-toggle="popover" title=""data-placement="bottom" data-content="content" r
JAVASCRIPT
$(函数(){
$(“#示例”).popover({
标题:“这是默认标题”,
是的,
内容:“- 测试1
- 测试2
”
});
});
有没有办法调用整个css类,在popover的内容中有自己的设计。
<li><a href="#" data-toggle="popover" title=""data-placement="bottom" data-content="content" role="button" data-trigger="hover" data-original-title="A Title"><b>welcome user</b> <i class="glyphicon glyphicon-user"></i></a></li>
<a href="#" id="example" class="btn btn-primary" rel="popover">popover
</a>
$(function () {
$('#example').popover({
title: "This is a default title",
html : true,
content : "<ul><li>test 1</li><li>test 2</li></ul>"
});
});