1

angularjsでテーブル列の幅を制御するためにリピーターを使用できますか? col ng-repeat

 <colgroup>
                            <col ng-repeat="th in eventCollection.head" ng-style="width:{{th.width}}" />
                            <!--<col span="1" style="width: 5px;">
                            <col span="1" style="width: 100px;">
                            <col span="1" style="width: 20px;">
                            <col span="1" style="width: 20px;">
                            <col span="1" style="width: 20px;">
                            <col span="1" style="width: 20px;">-->
                        </colgroup>
4

1 に答える 1

2

二重中括弧を失うだけです:

<col ng-repeat="th in eventCollection.head" span="1" ng-style="{ width: th.width }">
于 2013-01-29T19:26:25.780 に答える