文章詳情頁
html - css hover下元素消失為何加translate3d(0,0,0)
瀏覽:168日期:2023-06-15 17:05:41
問題描述
figure.team-blue:hover img{ opacity: 0; -webkit-transform: translate3d(0,0,0); transform: translate3d(0,0,0);}
問題解答
回答1:加translate3d(0,0,0)應該是要開啟硬件加速(hack技巧),消失的生效代碼應該就是opacity: 0;那句。
回答2:Using -webkit-transform: translate3d(0,0,0); will kick the GPU into action for the CSS transitions, making them smoother (higher FPS).大概是說使用硬件加速
標簽:
HTML
相關文章:
1. nignx - docker內nginx 80端口被占用2. 為什么redis中incr一個“0” 會報錯?3. docker 17.03 怎么配置 registry mirror ?4. 有沒有編程0基礎學習的課程表5. html5 - node靜態資源服務器設置了Cache-Control,但瀏覽器從來不走3046. web - nginx高并發是替換靜態文件可能會引起404或其他錯誤嗎?7. windows10 - Windows 10 安裝 nginx 出錯8. mysql - 要取出數據庫中按某字段排序后的前10,20,30條數據要怎么做?9. python對8000行csv添加列10. html5 - api.douban.com/v2/movie/in_theaters?start=0&count=3 不在以下合法域名列表中
排行榜

網公網安備