预览 iframe 注入的锚点拦截脚本只 preventDefault + scrollIntoView, URL hash 从未改变,html-multipage 技能基于 CSS :target 的子页面 切换永远不命中,子页面 section 保持隐藏,点击无效。改为拦截后 同步 location.hash 触发 :target 切页,仅当目标元素已渲染时再平滑滚动。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
预览 iframe 注入的锚点拦截脚本只 preventDefault + scrollIntoView, URL hash 从未改变,html-multipage 技能基于 CSS :target 的子页面 切换永远不命中,子页面 section 保持隐藏,点击无效。改为拦截后 同步 location.hash 触发 :target 切页,仅当目标元素已渲染时再平滑滚动。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>