javascript - 如何在 Edge 中设置滚动行为?
问题描述
我想使用具有平滑行为的 scrollLeft 方法,但 Edge 不支持它。我该怎么做?类似
menu.scrollBy({ left: 100, behavior: 'smooth' });
但在 Edge 中。
解决方案
推荐阅读
- cmake - CMake 导入共享和静态库版本,但我只想要一个
- python - 使用切片查询多索引熊猫数据框
- node.js - 节点版本管理器中的“系统”版本是什么意思?
- tensorflow - 使用单个类重新训练 ssd_inception_v2 模型成功,但在某些步骤后使用两个类失败
- visual-studio - 是否可以将 VSIX XAML 工具栏添加到 Visual Studio?
- javascript - html.js 仅在页面加载 Gatsby 时加载脚本一次
- c# - Checking wether textboxes are equal with list items
- c++ - UWP 应用与其配套浏览器扩展之间的 Windows 上的本机消息传递
- reactjs - React 中的即时实时通知
- nginx - NGINX:如何管理不同的可见性(LAN 与 Internet)