1. obj.style can only obtain the inline style (inline Style) that is written in the Tag. It cannot access the external css of those links and the style declared with in the head. <br>So you must realize that in those pages that use external Css files, if you use style assignment, such as obj.style="color:red"; obviously the effect is correct, and the secret is just the tag of the object An additional style attribute is added above, which is presented in order of priority from small to large. <br> 2. obj.currentStyle is much more powerful. It can get the style of all positions of this node, but it also follows the priority. To put it bluntly, it points to which style is displayed. The font priority of the following code is If blue is displayed, then currentStyle.color is blue. Of course, style.color will also be blue at this time. <br></p> <div class="codetitle"> <span><a style="CURSOR: pointer" data="5328" class="copybut" id="copybut5328" onclick="doCopy('code5328')"><u>Copy code</u></a></span> The code is as follows:</div> <div class="codebody" id="code5328"> <br><html> <br><head> <br><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <br><title>testStyle</title> <br><style> <br>.lala{ <br>color:yellow; <br>} <br> 1111 <br>alert(document.getElementById("tt"). currentStyle.color); <br>