說明
1、方法一:將fixed定位的內(nèi)容移出 滾動視圖外
2、方法二:在使用position:fixed的元素上加上transform: translateZ(0);
問題結(jié)構(gòu)
<div>
<span>內(nèi)容</span>
<!---按鈕是position:fixed--->
<button style='position:fiexd'>點(diǎn)擊提交</button>
</div>
方法一:
<div>
<span>內(nèi)容</span>
<!---按鈕是position:fixed--->
</div>
<button style='position:fiexd'>點(diǎn)擊提交</button>
方法二:
<div>
<span>內(nèi)容</span>
<!---按鈕是position:fixed--->
<button style='position:fiexd;transform: translateZ(0);'>點(diǎn)擊提交</button>
</div>