1. style 属性<br /> cssText -->批量操作css<br /> length (了解)<br /> getPropertyValue()<br /> item() -->返回对应位置的css属性名<br /> removeProperty()<br /> setProperty
    1. <p id="test">hello world</p>
    2. <script>
    3. var test = document.getElementById("test");
    4. test.style.cssText = "color:red;background-color:#333;font-size:14px;";
    5. console.log(test.style.getPropertyValue("color"))
    6. console.log(test.style)
    7. console.log(test.style.item(0))
    8. test.onclick = function(){
    9. this.style.removeProperty("color")
    10. this.style.setProperty("background-color","green")
    11. }
    12. </script>

    test.gif