【问题标题】:Does AngularUI/Bootstrap support twitter-bootstrap 3?AngularUI/Bootstrap 是否支持 twitter-bootstrap 3?
【发布时间】:2013-08-14 20:19:46
【问题描述】:

下拉菜单在 Angular-UI-Bootstrap 中不起作用?使用 Bootstrap-3 CSS

以下是代码。链接Click me for a dropdown 出现。但不会在点击时切换。怎么了?

<!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>

【问题讨论】:

    标签: twitter-bootstrap angular-ui twitter-bootstrap-3 angular-ui-bootstrap


    【解决方案1】:

    Angular-UI/Bootstrap 不支持 Bootstrap 3(目前)。

    您可以在 331742 上跟踪问题

    【讨论】:

    • 是否有任何解决方法可以提供您找到的切换功能?
    • 我没有使用 Angular 用户界面。切换在 bootstrap 2.3.2 和 bootstrap 3 中都可以正常工作
    【解决方案2】:

    截至about 10/1/13,是的!

    看来就连讨厌的Accordion & Collapse issues 也已经解决了。

    【讨论】:

    • 日期选择器的格式是否也已修复?
    • 刚刚将 cdn () 放入这个 PLUNKR plnkr.co/edit/?p=preview。好像还没有..
    • 截至今天它不起作用。我最终将 bootstrap-datepicker 与 angular-strap 混合使用,但这有点痛苦,因为它不会自动映射日期,您必须在控制器中手动分配。
    猜你喜欢
    • 2011-12-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-05-19
    • 1970-01-01
    • 1970-01-01
    • 2014-01-04
    相关资源
    最近更新 更多