考虑以下html:
<div class="a"> pick me 1</div>
<div class="b"> stuff </div>
<div class="a"> stuff </div>
<div class="a"> stuff </div>
<div class="a"> pick me 2</div>
<div class="b"> stuff </div>
<div class="a"> stuff </div>
<div class="c"> stuff </div>
<div class="b"> stuff </div>
我只想选择具有.a
和.b
紧随其后的 div,所以我只会选择我的 div