我一直在考虑做这件事:
<button class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only">Blah</button>
有没有一种方法可以在CSS中定义一个包含所有这些类的单个类,然后将按钮定义为具有该单个类?
例如:
.myclass {ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only}
<button class="myclass">Blah</button>
?