Can I use non existing CSS classes?
问题 I have a table where I show/hide a full column by jQuery via a CSS class that doesn\'t exist: <table> <thead> <tr> <th></th> <th class=\"target\"></th> <th></th> </tr> </thead> <tbody> <tr> <td></td> <td class=\"target\"></td> <td></td> </tr> <tr> <td></td> <td class=\"target\"></td> <td></td> </tr> </tbody> </table> With this DOM I can do this in one line via jQuery: $(\'.target\').css(\'display\',\'none\'); This works perfectly, but is it valid to use CSS classes that aren\'t defined?