Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のように、ドキュメント内のすべてのスタイルを設定したいと思います。
body * { color:#000; }
しかし、特定の div とそれが保持するすべてのものからスタイルを除外したいので、次のように not セレクターを試しました。
body *:not(.thisdiv *) { color:#000; }
うまくいかないようです。他に何を試すことができますか?