Adjacent sibling selectors
Adjacent sibling selectors
This is referred to as an adjacent selector or next-sibling selector. It will select only the specified element that immediately follows the former specified element.
Syntax
former_element + target_element { style properties }
Example
li:first-of-type + li { color: red; }
<ul> <li>One</li> <li>Two</li> <li>Three</li> </ul>
Another use case might be styling of "caption span"s of the following 登录查看完整内容