AngularJS前pression不是style属性中工作的IE8 [英] AngularJS expression not working within style attribute on IE8
本文介绍了AngularJS前pression不是style属性中工作的IE8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在style属性使用EX pression这样对Chrome的工作,但在IE8无法正常工作
Using an expression like this on the style attribute works on Chrome but doesn't work on IE8
style="width:{{progress}}%"
http://jsfiddle.net/5VDMD/12/ (测试它,请在文本框中键入一个数字)
http://jsfiddle.net/5VDMD/12/ (to test it please type a number in the textbox)
有关这个问题的任何解决办法?
Any workaround for this problem?
推荐答案
尝试
ng-style="{ width: progress + '%' }"
这篇关于AngularJS前pression不是style属性中工作的IE8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文