一、透明度opacity属性会被子元素继承,并且子元素从新设置opacity属性会不起做用;html
若不想子元素继承父元素的透明度可经过backgroud-colorl来设置背景颜色的透明度,如background-color: rgba(0,0,0,0.5);htm
二、ng-repeat里面的ng-module的做用域是ng-repeat这个子做用域的$scope,不属于ng-controller中的$scope,因此ng-module绑定数据时要在变量前面加上$parent才能在ng-controller中的$scope中获取;继承
如在html代码中的ng-module设置为:ng-module="$parent.hello",在controller中就能够用$scope.hello来改变和获取hello变量的值。ci