回答編集履歴

1

:has()

2018/03/20 15:08

投稿

think49
think49

スコア18166

test CHANGED
@@ -1,4 +1,14 @@
1
+ ### :has()
2
+
3
+
4
+
1
5
  解決済ですが、「**セレクタで指定**」という条件でしたので、セレクタのみで実装した別解を書いておきます。
6
+
7
+
8
+
9
+ - [4.5. 関係上の疑似クラス: :has() - Selectors Level 4 (日本語訳)](https://triple-underscore.github.io/selectors4-ja.html#relational)
10
+
11
+ - [jQuery セレクタで親要素の兄弟を指定 - JSFiddle](https://jsfiddle.net/3j1kq5ay/2/)
2
12
 
3
13
 
4
14