Can I programmatically determine a property value for a series of CSS classes?

前端 未结 2 911
暗喜
暗喜 2020-12-21 05:19

I need help understanding an easier way to write this.

I have classes that have a number between 1-100 at the end of it. So for example:

.select1 {
         


        
2条回答
  •  情歌与酒
    2020-12-21 06:13

    You can't do it with CSS. And you shouldn't do it this way. It's the same as inline styles:

    ...

    Bad way. You should separate your HTML layout and CSS.

提交回复
热议问题