AngularJS Bootstrap Tabset选项卡在IE8中不起作用的选项卡之间导航

时间:2015-02-04 01:42:53

标签: javascript angularjs internet-explorer-8 angular-ui angular-ui-tabset

应用程序很好并且在现代浏览器中工作。但是,我需要它在Internet Explorer 8中工作,并且我的选项卡的 ng-repeat 似乎无法正常工作。我无法在标签之间导航,Hover和活动标签正在运行,但内容不会更改。

看看我的代码。

HTML

<ul tabset id="tab-control">
    <ul tab class="dropdown-toggle" ng-repeat="tab in tabs" heading="{{tab.Name}}"  
        id="{{tab.codeListe}}" active="tab.active" disabled="tab.disabled" ng-click="tab_click(tab.codeListe, $index)" 
        ng-right-click="rightClick()" ng-mouseover="tab_hover()" ng-mouseleave="tab_leave(tab.codeListe,tab.Name)" icon-pos>
            <!-- ng-repeat should fire here -->

        <section class="accordion">
            <!-- Content Goes here -->
        </section>

    </ul>
</ul>

这些是我使用现代浏览器时的元素,它工作得很好..     (来自ChromeDevTools)。

<ul class="nav nav-tabs" ng-class="{'nav-stacked': vertical, 'nav-justified': justified}" ng-transclude="" style="width: 600px; position: absolute; left: 0px; top: 0px; display: block;">
         <!-- ngRepeat: tab in tabs -->

         <!-- <li> contains my ng-click and my ng-rightclick functions. I need them.-->

    <li ng-class="{active: active, disabled: disabled}" tab="" class="dropdown-toggle ng-isolate-scope" ng-repeat="tab in tabs" heading="1A Test" id="126279" active="tab.active" disabled="disabled" ng-click="tab_click(tab.codeListe, $index)" ng-right-click="rightClick()" ng-mouseover="tab_hover()" ng-mouseleave="tab_leave(tab.codeListe,tab.Name)" icon-pos="" style="width: 200px;">
        <a ng-click="select()" tab-heading-transclude="" class="ng-binding wrap" style="">1A Test</a>
        <div class="close-tab icon-delete"></div>
    </li>
        <!-- end ngRepeat: tab in tabs -->

    <li ng-class="{active: active, disabled: disabled}" tab="" class="dropdown-toggle ng-isolate-scope" ng-repeat="tab in tabs" heading="1B Test" id="126290" active="tab.active" disabled="disabled" ng-click="tab_click(tab.codeListe, $index)" ng-right-click="rightClick()" ng-mouseover="tab_hover()" ng-mouseleave="tab_leave(tab.codeListe,tab.Name)" icon-pos="" style="width: 200px;">
        <a ng-click="select()" tab-heading-transclude="" class="ng-binding wrap" style="">1B Test</a>
        <div class="close-tab icon-delete"></div>
    </li>
        <!-- end ngRepeat: tab in tabs -->
</ul>

这是来自我的IE8开发人员工具。

<div class="tabbable ng-isolate-scope" id="tab-control" tabset="" jQuery17106089792077578351="109">
    <ul class="nav nav-tabs" style="width: 968px;" ng-class="{'nav-stacked': vertical, 'nav-justified': justified}" ng-transclude="" jQuery17106089792077578351="110">

         <!-- ngRepeat: tab in tabs -->
         <!-- nothing happens here. <li> from ng-repeat does not append 
             This is my main problem, because this contains the click and
             rightclick function I need to navigate between tabs-->
    </ul>
</div>

tabset视图没问题,我跟着这个。 AngularUI - Compatible browsers

更新

我的功能没有问题所以我没有把它包括在内。

1 个答案:

答案 0 :(得分:0)