我想添加一个popover到这个glyphicon,但是我不能让它工作。Bootstrap,popover不起作用
HTML
<a href="#" data-toggle="popover" title="Popover Header" data-content="You must branch to this flow first, before you can return to the original flow"><span ng-show="flow.branched_from.length==0" class="glyphicon glyphicon-question-sign" aria-hidden="true" ></span></a>
,并在文件的结尾:
<script>
$(document).ready(function(){
$('[data-toggle="popover"]').popover();
});
</script>
我已经在我的文件的开头包含引导。
我看不到我做错了什么,工具提示工作。
你有任何JavaScript错误?你也包含jquery吗? – pbenard
@YenneInfo没有错误,并包含jquery – STEP
看看这个https://jsfiddle.net/fatbb967/。我包含了所有需要的JS和CSS,以及jQuery的边缘版本,并且它工作正常。也许有一些资源加载问题。你能指定使用的版本吗? – cr0ss