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.
var section = $('.section'); var width = section.width(); if (width < 960) section.addClass('.section-slim');
誰かがこれの何が悪いのかわかりますか?追加されたクラスを取得していません。
クラス名のドットを削除します。
section.addClass('section-slim');
CSS文法の詳細