Can I use non existing CSS classes?

后端 未结 13 1957
北荒
北荒 2020-11-27 12:54

I have a table where I show/hide a full column by jQuery via a CSS class that doesn\'t exist:

13条回答
  •  情歌与酒
    2020-11-27 13:55

    You can use a class which has no styles, this is entirely valid HTML.

    A class referenced in a CSS file is not a definition of a class, it is used as a selector rule for styling purposes.

提交回复
热议问题