Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个包含在固定高度的滚动 div 中的列表。当我点击一个类别转到所选页面时,我希望用户看到当前所选类别自动聚焦在其位置。也就是说,用户不必从头看到列表,而是关注当前位置。怎么做?