Cross browser issue with offset() jquery function

I am having a cross browser issue with the offset() function in jQuery. For example, I am looking for the offset of an anchor tag

eg. $('#anchorid').offset().top

  • In Firefox 3.6 = 205
  • In IE8 = 204
  • In IE7 = 553

As you can see the difference in each returned value. I am not too concerned with the difference between FF & IE8 but I am with IE7 and the others.

Is there another function I could use that would be the same or similar cross browsers or a possible fix for this?

7
задан allicarn 27 September 2013 в 18:47
поделиться