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.
重複の可能性: JavaScript からの CSS 疑似クラス ルールの設定
次のようにするにはどうすればよいですか。
::selection { color: #FFF; }
JavaScriptで?
.foobar::selection { color: #FFF; }
element.className += " foobar";