問題

96907cc7-ad27-4d75-a539-d10a06400721.jpg
解決方案1【親測(cè)有效】
- 在彈框出現(xiàn)的時(shí)候給body添加fixed
body{ position: fixed; width: 100%;}
- 當(dāng)彈框消失的時(shí)候
$("body").css("position","relative")
解決方案2
- 放棄 fixed,用absolute。計(jì)算scrollTop
body{ position: fixed; width: 100%;}
$("body").css("position","relative")