我有不同的简单页面,但是AngularJS-Bootstrap popover不起作用:显示图标但是当光标移过它时没有任何反应,f12日志中没有错误。 所有3个js文件和1个css文件都已到位。
问题在哪里?
index.html页面:
<html>
<head>
<script src="js/app.js"></script>
<script src="js/angular.min.js"></script>
<script src="js/angular-bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
</head>
<body>
<div class="a" >aaaaa</a>
<i class="glyphicon glyphicon-info-sign" style="font-size: 18px; max-width:10px; padding-top:0.6em;" uib-popover="testing testing testing testing " popover-trigger="mouseenter" popover-append-to-body="true"></i>
</body>
</html>
app.js。文件
var app = angular.module('app', ['ui.bootstrap','ngTouch']);
答案 0 :(得分:1)
您可以尝试将您的身体标签更改为
<body ng-app="app">