I'm not sure if this is possible, but is it possible to identify the div just below the div class? If so, what would I use to do it?
<div class="img-wrap">
<div></div> <---------------- This
<div class="img-wrap">
<div></div> <---------------- This
<div></div>
<div></div>
<div></div>
<div class="img-wrap">
<div></div> <---------------- This
Use +
, the adjacent sibling selector:
div.img-wrap + div
{
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.