每次用javascript设定CSS就头疼找不到属性。现在知道这个了
document.getElementById("mt"). style.cssText="margin:22px; color:#CC0000; clear:both;font-size:14px";
一句 style.cssText就能像写CSS一样了。
document.getElementById("mt"). style.cssText="margin:22px; color:#CC0000; clear:both;font-size:14px";
一句 style.cssText就能像写CSS一样了。