General sibling combinator (~), not updating on DOM changes, working as intended?

前端 未结 2 1345
[愿得一人]
[愿得一人] 2021-01-16 03:05

I had a go at at this question (this question isn\'t related at all to his question), and tried to solve it through applying CSS selectors depending on whether the checkboxe

2条回答
  •  -上瘾入骨i
    2021-01-16 03:44

    Your CSS looks correct, but browser support, of course, varies, and where there is support, there will be bugs. Javascript would be much more reliable.

提交回复
热议问题