批量设置 style
生活随笔
收集整理的這篇文章主要介紹了
批量设置 style
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
firefox等可以使用:
document.getElementById("id").setAttribute("style","top:20px;left:20px;color:red;");
IE中則必須使用style.cssText
document.getElementById("id").style.cssText = "top:20px;left:20px;color:red;";
轉載于:https://www.cnblogs.com/WhiteHorseIsNotHorse/p/8541124.html
總結
以上是生活随笔為你收集整理的批量设置 style的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 现房抵押贷款手续 现房抵押贷款的手续是什
- 下一篇: 20179311《网络攻防实践》第一周作