ui.bootstrap:简单的弹出窗口不起作用
ui.bootstrap: simple popover is not working
我有不同的简单页面,但是 AngularJS-Bootstrap 弹出窗口不工作:显示图标但是当光标移到它上面时没有任何反应,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']);
嗨,试试把你的正文标签改成
<body ng-app="app">
我有不同的简单页面,但是 AngularJS-Bootstrap 弹出窗口不工作:显示图标但是当光标移到它上面时没有任何反应,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']);
嗨,试试把你的正文标签改成
<body ng-app="app">