我需要选择比这些选择器具有任何额外类的所有内容,.not-submenu.separator:not('.first-item')
我.first-item.not-submenu.separator
如何将通配符和 aOR
应用于这种情况?
<li class="first-item not-submenu separator"></li>
<li class="not-submenu separator"></li>
<li class="not-submenu separator randomclass1"></li>//remove everything that have an extra class and still matches the other selectors
<li class="not-submenu separator randomclass2"></li>
<li class="not-submenu separator randomclass3"></li>
(...)
<li class="not-submenu separator randomclassn"></li>