一个angularjs中继器控制表列宽度?

时间:2013-01-29 19:21:08

标签: angularjs

我可以使用转发器来控制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>

1 个答案:

答案 0 :(得分:2)

失去双重支撑:

<col ng-repeat="th in eventCollection.head" span="1" ng-style="{ width: th.width }">