Is there anyway to use javascript get the attributes determined by CSS?
<p>For example,</p>

<pre><code>&lt;html&gt;
  &lt;head&gt;&lt;link rel="stylesheet" type="text/css" href="theme.css"&gt;&lt;/head&gt;
    &lt;body&gt;
      &lt;img id="tmp"&gt;&lt;/img&gt;
    &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>in theme.css</p>

<pre><code>img#tmp{
      width:120px;
      top:0;
      left:0;
      }
</code></pre>

<p>Is there anyway that I can get the width of the image "tmp" directly by JavaScript? Something like<br>
<code>var temp=document.getElementById("tmp"); var width=temp.style.width</code>?</p>
