- バックアップ一覧
- 差分 を表示
- 現在との差分 を表示
- バックアップ を表示
- JavaScript/DOM/classNameやcssTextでstyleの操作を減らす へ行く。
- 1 (2011-07-14 (木) 13:16:46)
* 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;"