2012-03-06 html(:root)にclassをふる JavaScript やったことなかった var doc_elm = document.documentElement; // document.html じゃないよ doc_elm.setAttribute('class', 'hoge');