Javascript 角度ng重复台并排交替
我对Angular非常陌生,有一个页面在table元素上使用ng repeat,该元素根据需要执行重复,示例如下: 我想要的是,每隔一张桌子并排交替,然后继续下一行:Javascript 角度ng重复台并排交替,javascript,html,angularjs,Javascript,Html,Angularjs,我对Angular非常陌生,有一个页面在table元素上使用ng repeat,该元素根据需要执行重复,示例如下: 我想要的是,每隔一张桌子并排交替,然后继续下一行: 任何建议都会非常好…您可以使用引导创建此结构。这与angularjs无关。 您可以这样构造页面 <div class="row"> <div class="col-md-6 pull-left" ng-repeat="x in tables"> <table>
任何建议都会非常好…您可以使用引导创建此结构。这与angularjs无关。
您可以这样构造页面
<div class="row">
<div class="col-md-6 pull-left" ng-repeat="x in tables">
<table>
<thead>
<th>Table#{{$index}}</th>
</thead>
<tbody>
<tr ng-repeat="r in rows">
your td here...
</tr>
</tbody>
</table>
</div>
</div>
表#{$index}
你的td在这里。。。
希望您现在了解了如何填充此结构您可以使用引导创建此结构。这与angularjs无关。
您可以这样构造页面
<div class="row">
<div class="col-md-6 pull-left" ng-repeat="x in tables">
<table>
<thead>
<th>Table#{{$index}}</th>
</thead>
<tbody>
<tr ng-repeat="r in rows">
your td here...
</tr>
</tbody>
</table>
</div>
</div>
表#{$index}
你的td在这里。。。
希望您现在知道如何填充此结构了定位的一部分更多地是引导,而不是角度 每页分为12列。您只需要为每个表选择适当数量的列 对于左半部分,div类将是col-md-6。下次使用col-md-6时,它将自动进入页面的右半部分
您可以在这里了解更多信息:定位的部分更多地是引导,而不是角度 每页分为12列。您只需要为每个表选择适当数量的列 对于左半部分,div类将是col-md-6。下次使用col-md-6时,它将自动进入页面的右半部分 您可以在此处阅读更多信息: