Firefox and Chrome give different values for offsetTop

后端 未结 8 1931
囚心锁ツ
囚心锁ツ 2021-02-14 14:58

I am trying to position an span element (let us call it \"the tooltip span\") relative to a input field. To do this, I am wrapping the tooltip span and the input field in anothe

8条回答
  •  长发绾君心
    2021-02-14 15:27

    I was experiencing the same problem, and tried adding to my function

    $(document).ready(function(){}); 
    

    and it worked in both Chrome and Firefox

提交回复
热议问题