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.
任何想法如何阻止浏览器在隐藏溢出时强制聚焦表单字段进入视图?
如何将违规字段移出页面(位置:绝对;顶部:-9999;)?这将使它消失。
如果您希望该字段出现在您最初放置它的位置,但是您可以拥有一组虚拟字段(从顶部的页面中删除:-9999)并在用户浏览表单时将焦点转移到它们。如果您在更改虚拟字段时更新视图中的字段,那么您可以给人一种用户正在操纵可见表单的印象。