Tag:angularjshtmlcsshtml5
Article From:https://segmentfault.com/q/1010000013341366
Question:

Recently, there is a problem in development, which is about the problem of angularjs displayed in IE.

$xx.push({times:(sum/sumSrece*100).toFixed(2) + “%”,time:$scope.sendDatatime,color:sum/sumSrece,number:’0.985′,assess:’98.5%’,timeS:(sumOne/sumSreceTwo*100).toFixed(2) + “%”,colors:sumOne/sumSreceTwo});

angular.forEach(xx,function(rec){

              if(rec.colors < rec.number && rec.colors>0){
                rec.styles='background-color:#FF9900' 
              }else if (rec.colors == rec.number || rec.colors>rec.number){
                rec.styles='background-color:#008100'
              }else{
                rec.styles='background-color:#DCE5F2'
              }
            })
            

Front end code:< tr ng-repeat= "rece in XX" >< TD ng-if= "! MassShow" style={{rece.style}}> {{rece.times}}< /td>< /tr>

Style in Google:

ieMedium style:

ieIt is suggested that:

How do you solve this problem? Ask the great God to guide them.

Answer 0:

Finally, this problem is solved by using ng-class.

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *