인접 형제 결합자
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015년 7월.
인접 형제 결합자(+
)는 앞에서 지정한 요소의 바로 다음에 위치하는 형제 요소만 선택합니다.
css
/* Paragraphs that come immediately after any image */
img + p {
font-weight: bold;
}