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 + Lumx 开发一个 webapp。我正在实现一个对话框,其中有一个包含很多列和很多行的表,因此它甚至可以水平滚动甚至垂直滚动。
问题是水平滚动条仅在页面末尾可见。但是这种方式不清楚用户是否也可以水平滚动。
有没有办法让水平滚动条始终可见?
非常感谢!
正如您在下面的屏幕中看到的那样,只有当我位于页面末尾时,水平滚动条才可见
在页面末尾垂直滚动后,我可以看到它
在 Mac OS 上,滚动条隐藏了!对此有系统偏好。
这里还有一个很长的话题:https ://news.ycombinator.com/item?id=6246777
这应该使水平滚动条始终可见。
html { overflow-x:scroll; }
或者
html,body{ height:100vh; width:100vw; margin: 0; padding: 0; }