diff --git a/app/index/view/pc/public/header.html b/app/index/view/pc/public/header.html index 934ff36f..c2216898 100644 --- a/app/index/view/pc/public/header.html +++ b/app/index/view/pc/public/header.html @@ -284,4 +284,7 @@ $('#top-country').hide(); }); }); + + \ No newline at end of file diff --git a/app/index/view/pc/topic_laptop/index.html b/app/index/view/pc/topic_laptop/index.html index 872705a7..25296692 100644 --- a/app/index/view/pc/topic_laptop/index.html +++ b/app/index/view/pc/topic_laptop/index.html @@ -27,26 +27,25 @@ + -{/block} +{/block} \ No newline at end of file diff --git a/public/static/index/pc/css/topic_laptop/fs.css b/public/static/index/pc/css/topic_laptop/fs.css index d62df45b..60c04e64 100644 --- a/public/static/index/pc/css/topic_laptop/fs.css +++ b/public/static/index/pc/css/topic_laptop/fs.css @@ -5,6 +5,12 @@ width: 100%; aspect-ratio: 16/9; /* 2560/1440=16/9,核心比例约束 */ position: relative; + will-change: contents; /* 告诉浏览器该元素即将变化,提前优化 */ + contain: layout paint; /* 限制重排重绘范围 */ +} +.fs-img, .fs-video { + backface-visibility: hidden; /* 开启硬件加速 */ + transform: translateZ(0); /* 硬件加速 */ } .fs-box img { width: 100%; diff --git a/public/static/index/pc/css/topic_laptop/index.css b/public/static/index/pc/css/topic_laptop/index.css index 9cfe1fa0..841910c9 100644 --- a/public/static/index/pc/css/topic_laptop/index.css +++ b/public/static/index/pc/css/topic_laptop/index.css @@ -7,6 +7,8 @@ body { height: 100vh; */ background: #000; overflow-x: hidden; + scroll-behavior: smooth !important; + -webkit-overflow-scrolling: touch !important; /* padding: 0 !important; margin:0 !important; */ /* width: 100vw !important; */ @@ -24,3 +26,7 @@ body { transition: opacity 0.8s ease-out, transform 0.8s ease-out, visibility 0.8s ease-out; } + /* 18-19号防卡顿:延迟19号动画 */ + /* [data-order="19"] { + transition: all 0.3s ease-out 0.2s !important; + } */ diff --git a/public/static/index/pc/css/topic_laptop/lb.css b/public/static/index/pc/css/topic_laptop/lb.css index 6dfca21d..2412ac99 100644 --- a/public/static/index/pc/css/topic_laptop/lb.css +++ b/public/static/index/pc/css/topic_laptop/lb.css @@ -77,10 +77,10 @@ /* 移除定位相关的箭头位置控制(Flex布局无需) */ .arrow-left { - margin-right: 2.32rem; + margin-right: 1rem; } .arrow-right { - margin-left: 2.32rem; + margin-left: 1rem; } /* 轮播下方文字区域(保留原有) */ diff --git a/public/static/index/pc/js/large.js b/public/static/index/pc/js/large.js index 1f51a85b..9f269801 100644 --- a/public/static/index/pc/js/large.js +++ b/public/static/index/pc/js/large.js @@ -10,6 +10,7 @@ $(document).ready(function () { // 初始化图片放大功能 initImageEnlarger(); + console.log('触发') }); /** @@ -294,4 +295,4 @@ function initImageEnlarger() { $enlargeImg.hide(); } }); -} \ No newline at end of file +}