AngularUI/Bootstrap 是否支持 twitter-bootstrap 3? [英] Does AngularUI/Bootstrap support twitter-bootstrap 3?
本文介绍了AngularUI/Bootstrap 是否支持 twitter-bootstrap 3?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
下拉菜单在 Angular-UI-Bootstrap 中不起作用?使用 Bootstrap-3 CSS
Dropdown menu not working in Angular-UI-Bootstrap? Using Bootstrap-3 CSS
以下是代码.链接 Click me for a dropdown
出现了.但不会在点击时切换.怎么了?
The following is the code. The link Click me for a dropdown
shows up. But does not toggle on click. What is wrong?
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="css/bootstrap.min.css">
<script>function DropdownCtrl($scope) {
$scope.items = [
"The first choice!",
"And another choice for you.",
"but wait! A third!"
];
}
</script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.1/angular.min.js"></script><script type="text/javascript" src="js/ui-bootstrap-tpls-0.5.0.min.js"></script><script type="text/javascript" src="js/dropdownToggle.js"></script>
</head>
<body>
<li ng-controller="DropdownCtrl" class="dropdown">
<a href='#' class="dropdown-toggle"> Click me for a dropdown </a>
<ul class="dropdown-menu">
<li ng-repeat="choice in items"><a>{{choice}}</a>
</li>
</ul>
</li>
</body>
</html>
推荐答案
Angular-UI/Bootstrap 不支持 Bootstrap 3(目前).
Angular-UI/Bootstrap does not support Bootstrap 3 (yet).
这篇关于AngularUI/Bootstrap 是否支持 twitter-bootstrap 3?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文