使用position: relative致使頁面抖動問題

在元素上使用position: relative,發現會致使頁面抖動;
目前使用的瀏覽器是 Chrome(版本80.0.3987.149),
使用火狐(版本74.0)測試,無抖動狀況。
在網上查看資料,發下如下方法能夠解決此問題:css


給fixed的元素添加如下css的樣式web

-webkit-transform: translateZ(0);
相關文章
相關標籤/搜索