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.
我使用Angular Material创建了一个长表单。奇怪的是,它不是从正常显示的页面开始,而是从表单的中途开始。这是我的浏览器正在做的事情吗(也许它认为我上次在某个时候停止了)?
不知道如何强制页面正常加载并从顶部开始。
有没有人遇到过这个?
我能够找到问题所在,这是导致页面向下滚动的 md-autocomplete 字段。为了解决这个问题,我在 md-autocomplete 字段中添加了 md-autofocus="false" ,现在它可以正常加载了。