Extract value of attribute 'style'
<p>Simple question really, but somehow, I can't figure it out. 
I have the following, let's call it "s":</p>

<pre><code>&lt;tr&gt;
  &lt;td class="some_class"&gt;
    &lt;span class="outer_class"&gt;
       &lt;span class="inner_class" style="width:86.0px"&gt;&lt;/span&gt;
    &lt;/span&gt;
  &lt;/td&gt;
&lt;td&gt;Variable_name&lt;/td&gt;
&lt;/tr&gt;
</code></pre>

<p>I want to extract the value of "style", ie. 86.0px (text or string, I don't care). </p>

<p>I have tried:</p>

<pre><code>s.find(attrs={"style"})
</code></pre>

<p>but it returns "None" (but it exists, worst case scenario, it has value 0.0). 
and <code>.contents</code> returns the entire value between tags. </p>

<p>Thanks for the help. </p>