diff --git a/振幅锁仓策略/index-FG.html b/振幅锁仓策略/index-FG.html index 69db4d2..18eaa00 100644 --- a/振幅锁仓策略/index-FG.html +++ b/振幅锁仓策略/index-FG.html @@ -182,6 +182,7 @@ function toggleSection(id) { document.getElementById(id).classList.toggle('collapsed'); } function openSection(id) { + document.querySelectorAll('.section').forEach(function(s) { s.classList.add('collapsed'); }); var el = document.getElementById(id); el.classList.remove('collapsed'); el.scrollIntoView({ behavior: 'smooth', block: 'start' }); diff --git a/振幅锁仓策略/index-SA.html b/振幅锁仓策略/index-SA.html index f6fa90b..776d777 100644 --- a/振幅锁仓策略/index-SA.html +++ b/振幅锁仓策略/index-SA.html @@ -182,6 +182,7 @@ function toggleSection(id) { document.getElementById(id).classList.toggle('collapsed'); } function openSection(id) { + document.querySelectorAll('.section').forEach(function(s) { s.classList.add('collapsed'); }); var el = document.getElementById(id); el.classList.remove('collapsed'); el.scrollIntoView({ behavior: 'smooth', block: 'start' });