* classNameやcssTextでstyleの操作を減らす [#tdfbf667]

 element.style.color = "red";
 element.style.fontSize = "25px";

 .active {
     color: red;
     fontsize: 25px;
 }
 
 element.className = "active";

 element.style.cssText = "color: red; fontSize: 25px;"


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS