加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

AngularUI / Bootstrap是否支持twitter-bootstrap 3?

发布时间:2020-12-18 00:18:00 所属栏目:安全 来源:网络整理
导读:下拉菜单在Angular-UI-Bootstrap中不起作用?使用Bootstrap-3 CSS 以下是代码.链接点击我的下拉列表显示.但是不要在点击时切换.哪里不对? !DOCTYPE htmlhtmlheadlink rel="stylesheet" href="css/bootstrap.min.css"scriptfunction DropdownCtrl($scope) {
下拉菜单在Angular-UI-Bootstrap中不起作用?使用Bootstrap-3 CSS

以下是代码.链接点击我的下拉列表显示.但是不要在点击时切换.哪里不对?

<!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(尚未).

您可以在331和742上跟踪问题

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读