0
我已經創建了一個使用角度js的表格。現在我需要將表格行滾動到特定的表格行。我嘗試了$ anchorScroll,但它不適合我。滾動在tbody裏面angularjs
<div class="tab-pane fade in active" id="scorecard">
<table class="header-fixed table">
<tbody>
<tr ng-repeat="x in test" ng-class="x == 41 && 'current-user current-user-scroll' || x.show == 0 && 'tng-hide-user' || 'non-current-user'" ng-cloak dashboard-data">
<td class="col-xs-2" >{{ x }}</td>
<td class="col-xs-8">{{ x }}</td>
<td class="col-xs-2">{{ x }}</td>
</tr>
</tbody>
</table>
</div>
我想從上面的代碼是,我需要滾動表格直接到第41行。
謝謝。
這是更好地使用'div'用'COL-XS-',而不是'table'。你爲什麼不使用它? –
創建「div」比使用「table」的優勢是什麼@ArunGhosh – user15837
http://stackoverflow.com/questions/83073/why-not-use-tables-for-layout-in-html –