P粉3646420192023-08-25 09:52:57
.classA.classB
refers to elements with both class A and class B (class="classA classB"
); while .classA .classB
refers to the descendant element of an element with class="classA"
, and the descendant element has class="classB"
.
Edit: Reference specification: Attribute selectors (see Section 5.8.3 Class Selectors)