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.
CSSファイルにこれがあります
h1, h2, h3, h4 { color: red; }
次のような 1 つのステートメントですべての見出しを選択する方法はありますか
h* { color: red; }
標準の CSS でこれを行う方法はありません。コンマ区切りのリストを使用する必要があります。
ただし、SASS や LESS などのスタイルシート言語を使用してこれを実現できます。