阅读背景:

在HTML中使用三元运算符来决定要实现的类

来源:互联网 

I want to decide on a CSS class dynamically using ternary operator in HTML. I'm using following code but it seems the condition isn't being evaluated at all. Whatever class that is written in the true part of the condition, is applied. How can I apply a particular class based on some condition? Any alternative approach will be helpful too.I want to decide on a CSS class dynamically usi




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: