1. 程式人生 > >2017/6/16

2017/6/16

over 內容 css -s list center add 限制 blog

1.AngularJS ng-if 判斷

 <div class="wrap-ellipsis" ng-if="spaceInfor.posCenterX == null && spaceInfor.posCenterY == null"></div>
 <div class="wrap-ellipsis" ng-if="spaceInfor.posCenterX !=null || spaceInfor.posCenterY != null">({{spaceInfor.posCenterX}},{{spaceInfor.posCenterY}})</
div>

ng-if 判斷值,選擇相應的div。

2.顏色需要修改可以用 css樣式覆蓋原來的樣式。

3.滾動條樣式 限制div內容多了後會出現滾動條

    list-style-type:none; 
    padding-left:0px; 
    height: 125px;
    overflow-y:auto;

2017/6/16