jquery overlay loading bar div

后端 未结 4 428
清酒与你
清酒与你 2021-01-31 05:09

So I have a table of data, and I\'m getting data back using ajax. When data is being retrieved, the data from the table disappears and a small little loading circle appears. I\'

4条回答
  •  [愿得一人]
    2021-01-31 06:03

    This worked for me, but only one thing with the overlay as it was shifted to the left.

    I added one line to the javascript and it worked perfectly on Chrome, Firefox and Safari (on Windows).

    $("#overlay").css({
      opacity : 0.5,
      top     : $t.offset().top,
      width   : $t.outerWidth(),
      height  : $t.outerHeight(),
      left    : $t.position().left // the fix.
    });
    

提交回复
热议问题