gpt4 book ai didi

templates - AngularJS 表达式在 IE8 上的 style 属性中不起作用

转载 作者:行者123 更新时间:2023-12-03 07:36:27 25 4
gpt4 key购买 nike

在 style 属性上使用这样的表达式适用于 Chrome,但不适用于 IE8

style="width:{{progress}}%"

http://jsfiddle.net/5VDMD/12/ (要测试它,请在文本框中输入一个数字)

这个问题有解决办法吗?

最佳答案

尝试

ng-style="{ width: progress + '%' }"

关于templates - AngularJS 表达式在 IE8 上的 style 属性中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13716993/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com