[ng-dhtml] style.js

Dean Edwards dean at edwards.name
Sat Sep 17 15:43:49 CDT 2005


Scott J. Miles wrote:
> 
>>> Dean Edward's IE7 supports all unit types. It is open source so
>>> maybe you can grab some code from there to support more units?
>>> 
> 
> Wow, I've never seen that before. Lots of goodies there.
> 

If you are interested in computing pixel values for IE6 then there is a 
getPixelValue function in ie7-core.js:

http://dean.edwards.name/IE7/src/?ie7-core.js

If you want to compute pixel values for IE5.x then that is much more 
complicated. You can take a look here:

http://dean.edwards.name/IE7/src/?ie7-quirks.js

but as I say it is complicated...

FYI - clientWidth/Height are always zero for elements without "layout" 
in IE.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/IETechCol/cols/dnexpie/expie20050831.asp

-dean




More information about the NG-DHTML mailing list