文章詳情頁
html - css hover下元素消失為何加translate3d(0,0,0)
瀏覽:95日期: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. windows10 - windows與ubuntu16.0.4雙系統2. mysql無法刪除字段(錯誤1091),但是對該字段設置主鍵后就可刪除,為什么?3. android-studio - Android studio導入老版本的2048項目報錯4. python - (2006, ’MySQL server has gone away’)5. update方法不能更新字段值為0的數據6. python - thrift 返回 TSocket read 0 bytes 求助!!!!7. android-studio - Win10下修改Windows用戶文件夾名user,導致Android Studio報錯無法使用8. javascript - main head .intro-text{width:40%} main head{display:flex}為何無效?9. mysql 不是3306 端口要如何登陸10. TP6.0 Jump.php報錯
排行榜
