发表于: 2016-11-16 23:35:04
1 1760
今天完成的事:修改了任务8
明天计划的事:金融表单项目
收获:
1,<th><input type="checkbox" name="edit" ng-model="all ">姓名</td>
设置的padding为0,styles显示padding为0,实际上存在padding-top和padding-buttom,原因是:th设置了height:40px,而th中内容高度小于height,
解决办法:设置line-height:40px
2,<th><input type="checkbox" name="edit" ng-model="all ">姓名</th>
<tr ng-repeat="x in params" >
<td ><input type="checkbox" name="edit" class="home-main-td" value="$index" ng-model="x.logic" ng-checked="all"></td>
</tr>
点击全选,能选中所有radio,但不能删除;
原因:点击全选radio,all==true,当x.logic==true时删除,但all!=x.logic
解决办法:删除条件加上黄色部分:$scope.params[i].logic==true || $scope.all==true
评论