thanks in advance,recently I'm learning scrapy and I don't what is the "+" meaning ,here is my codeenter image description here
Asked
Active
Viewed 33 times
-1
-
1did you try to find it on [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/Adjacent_sibling_combinator)? – nart May 07 '22 at 02:46
-
https://www.w3schools.com/cssref/sel_element_pluss.asp – Alex Kudryashev May 07 '22 at 02:46
1 Answers
-1
https://developer.mozilla.org/en-US/docs/Web/CSS/Adjacent_sibling_combinator
it means Adjacent sibling combinator.
div + p {
color: red
}
<body>
<div>div</div>
<p>p1</p>
<p>p2</p>
</body>
you can run the code snippet, then you will find only the first paragraph is red, just because it is adjacent sibling of div element. Meanwhile the second paragraph is not red.

Regis Emiel
- 1
- 1