在z-index:-1時(shí)使用position: absolute會使界面上方出現(xiàn)空白的解決方法
(認(rèn)知有限,如有不妥,還望告知,歡迎討論)
問題
在對一個(gè)div元素加css樣式發(fā)現(xiàn),在z-index: -1時(shí)使用position: absolute會使界面上方出現(xiàn)空白。


解決方法:
在該元素的樣式中,加top:0


網(wǎng)頁顯示
=END=
=reference=
[1] https://segmentfault.com/q/1010000015662662
[2] https://blog.csdn.net/m0_46365130/article/details/121033248
標(biāo)簽: