Nathan Young -X (natyoung - Artizen at Cisco) schrieb:
> If for some reason you can't do that, you can check to see if they did
> alter the format of the element.  If you are expecting it to be 13px by
> default, you can check:
> 
> if (ElementInQuestion.style.fontSize == "13px"){whatever}

That will only work if font-size has been declared in the style 
attribute of that element.

You need to use getComputedStyle and its IE counterpart for rules that 
are defined elsewhere. But jQuery already provides an abstraction:

$(ElementInQuestion).css('font-size');

It's getting more complicated if the element in question is not visible, 
e.g. its display property has the value "none".


-- Klaus

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to