How do I select the first adjacent sibling?

前端 未结 8 2273
北海茫月
北海茫月 2020-12-30 19:38

I have an HTML list like so:

  • Heading 1
8条回答
  •  情话喂你
    2020-12-30 20:19

    The official CSS3 Spec does not currently support anything like this, though I do realize that it would be useful.

    I would try doing searches for some pre-built JavaScript or jQuery scripts/libraries for adding CSS selectors. Although I have never come across anything.

    If you do not find anything, you might as well just do it manually, or try finding a completely different solution.

提交回复
热议问题