How to test the valord and an x-for variable and change the CSS Style according to the value?

后端 未结 0 789
天涯浪人
天涯浪人 2020-12-08 08:53

How can I test the value of an x-for variable and then meet an IF condition to change the CSS value?