Klaus Hartl schrieb: > Jörn Zaefferer schrieb: > >> css() automatically adds "px" to values passed as a number, where >> appropiate (it excludes eg. opacity and z-index), so you don't need to >> add that in your code. >> > > Does it exclude line-height? You can declare line-height unitless > (line-height: 1 and line-height: 1em is not the same in terms of > inheritance). > Yep. The interesting code is inside jQuery.prop (search for "prop:"):
// exclude the following css properties to add px var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i; So far no one complained about that selection. -- Jörn Zaefferer http://bassistance.de _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
