Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 7th, 2012  |  syntax: None  |  size: 0.20 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. clientWidth and clientHeight always returns zero for ie7
  2. <div id='aaa'>aaaaaa</div>​
  3.        
  4. var el = $('#aaa')[0];
  5. alert('Client width and height: '+ el.clientWidth + ' X ' + el.clientHeight);​