回答編集履歴

1

.

2023/03/23 02:41

投稿

int32_t
int32_t

スコア20884

test CHANGED
@@ -1,3 +1,10 @@
1
1
  `.entry-content *:not(ul.test) a, .entry-content > a {` でしょうか。
2
+ ↑これだと `ul.test` の中にあっても他の先祖要素があるとマッチしてしまうので駄目でした。
3
+
4
+ 特定の親を除外する必要があって、
5
+ ```css
6
+ .entry-content *:not(.test2):not(.test3):not(.test4) > a, .entry-content > a
7
+ ```
8
+ かなと思います。
2
9
 
3
10