问题标签 [scrollbar]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
javascript - 在添加内容时使可滚动元素保持在“底部”
我正在为我正在开发的 Web 应用程序构建一个实用程序页面。我有一个元素想用作各种“控制台”。
我通过 Ajax 调用(使用原型)获得控制台条目Ajax.PeriodicalUpdater
。
我遇到的问题是,当我在“控制台”底部插入新行时,滚动条保持在初始位置(所以我总是看到顶行,除非我手动向下滚动)。
如何让滚动条自动停留在底部?
我在这个项目中为一些需要它的库使用原型,所以如果可能的话,我宁愿坚持使用那个或常规的 javascript。
就像一个注释,我已经尝试过这个:
它几乎可以工作,只是它总是“落后一步”,而且我看不到最近的项目。
winapi - WS_VSCROLL,CreateWindow 样式有效,SetWindowLong 无效
当我做
一切都很好,但是如果我删除 WS_VSCROLL 和 WS_HSCROLL 然后执行以下操作,我不会得到它们,因此窗口不正确。为什么?如果 WS_VSCROLL 和 WS_HSCROLL 都丢失,我不仅会得到一个不正确的窗口,而且它是不可用的
apache-flex - Flex:防止滚动条在自动显示时覆盖内容
我在 Flex 中有一个只能在垂直方向滚动的画布,所以我将画布的属性设置如下:
这里的问题是垂直滚动条在出现时会覆盖内容 - 尽管还有足够的水平空间。我本来希望内容大小会自动调整。
将垂直滚动策略设置为“on”时,也不会覆盖任何内容。
如果我将两个滚动策略都设置为“自动”,我还会得到一个水平滚动条,仅用于滚动到垂直滚动条覆盖的区域。
是否有一种解决方法,当显示垂直滚动条时,如何重新布局画布的内容,使其不覆盖任何内容?
html - 是否可以隐藏 HTML textarea 元素上的滚动条?
是否可以使用 CSS 或任何其他方式隐藏 HTML textarea 元素上的滚动条?
html - html - scrollbar jump by itself
I'm experiencing this weird problem which my scrollbar jumps by itself to somewhere that I don't want it to.
I have a table with scrollbar inside this page, if the user have a smaller screen, the page automatically adds a scrollbar. If I scroll down to the bottom of the table and click on it, the scrollbar of the page jumps up so I can no longer see the thing I clicked. Any ideas?
Thanks.
visual-c++ - 在 VC++ 6.0 和 MFC 中处理滚动条
Hai 在vc++6.0 MFC中,我连接了一个串口,同时在编辑框(IDC_EDIT1)中读取和显示数据(我想显示日期和时间),
我的问题是我在编辑框中使用了垂直滚动条。每当我显示新数据时,垂直滚动条就会向上移动;它必须向下(向下滚动),
写好的代码:
javascript - 如何使用 JavaScript 禁用滚动条?
当我仅在 Internet Explorer 7 中显示表示模式窗口的 div 时,我需要锁定浏览器滚动条。谷歌搜索我发现我可以使用document.body.style.overflow='hidden'
,但这不适用于 IE7。我也尝试了document.body.scroll="no"
which 工作,但只有在我将鼠标悬停在滚动条上之后:-S
有人知道更好的方法吗?
谢谢
apache-flex - Adobe Flex 控件缺少垂直滚动条
我有一个包含数据网格的画布。我将画布的水平和垂直滚动设置为“关闭”,并将 DG 设置为“自动”。这一直有效,直到我在 DG 中有更多的列(> = 16),然后垂直滚动条不会出现。有人看过这个,更好的是,有答案吗?
asp.net - ASP.NET: How to hide ListBox control vertical scrollbar?
I have tried CSS: overflow: auto. It doesn't work. Any way to achieve it?
Do I need to create my custom control as I have seen it on ASP.NET forum?
.net - ScrollBar in DataGridView
I have a winform in vs2008 that contains a DataGridView. The datagrid contains a list with several columns. These are fixed width, exept one that I have set up to take whatever space is left and fill the width of the view. The winform is resizeable in all directions.
The issue I am trying to solve is that when I increase the vertical size of the window the scrollbar disappears and the columns snap to the right to fill the extra space. What I would like to happen is that the vertical scrollBar never disappears. Setting ScrollBars to vertical in the properties of the DataGridView does not do this.
Is this at all possible to achieve? And, if so, how do I get the vertical scrollbar to always be visible?