mirror of
https://github.com/afoim/fuwari.git
synced 2026-01-31 09:03:18 +08:00
fix: 优化移动端背景图显示并更新通知内容
- 为移动端浏览器添加 will-change 和 transform 属性,防止动态 URL 栏导致的背景跳动 - 在站点通知中添加关于背景图缩放问题的反馈提示
This commit is contained in:
@@ -218,6 +218,9 @@ const bannerOffset =
|
||||
pointer-events: none;
|
||||
z-index: -1;
|
||||
transition: opacity 0.3s ease-in-out;
|
||||
/* Prevent background jump on mobile browsers with dynamic URL bars */
|
||||
will-change: transform;
|
||||
transform: translateZ(0);
|
||||
}
|
||||
|
||||
#bg-box.loaded {
|
||||
|
||||
Reference in New Issue
Block a user