1

该应用程序一切正常,可以在现代浏览器中运行。但是,我需要它在 Internet Explorer 8 中工作,而且我的选项卡的ng-repeat似乎不起作用。我无法在选项卡之间导航,悬停和活动选项卡正在工作,但内容没有改变。

看看我的代码。

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 - 兼容的浏览器

更新。

我的功能没有问题,所以我没有包含它。

4

1 回答 1

0

Angular 1.3 已经放弃了对 ie8 的支持。

于 2015-03-09T17:06:15.897 回答