1
A
回答
2
在保存所有页面代码的正文下创建一个div。给这个CSS的div:
position:absolute;
top:0px;
bottom:0px;
right:0px;
left:0px;
overflow: scroll;
然后只是在div上应用完美的滚动条。
一点解释:
// Set the div's position
position:absolute; // Set the div display to be relative to the document
// Make the div cover the full page
// by setting all directions px to 0
top:0px; // Set the div start from top
bottom:0px; // Set the div start from bottom
right:0px; // Set the div start from right
left:0px; // Set the div start from left
// Set the div to show a scrollbar on overflow
overflow: scroll;
相关问题
- 1. 更改滚动条
- 2. 更改滚动条位置
- 3. 更改滚动条样式
- 4. 滚轮滚动 - 滚动更改图片
- 5. 滚动条在更改滚动值时不更新
- 6. 改善gridview的滚动性能
- 7. 没有滚动条的jQuery滚动框
- 8. 更改鼠标滚动时的滚动条速度
- 9. 更改浏览器滚动条的可滚动高度
- 10. 具有固定标题和滚动问题的Datagrid滚动条
- 11. 滚动窗口中的元素,该元素具有滚动条。
- 12. 如何使滚动条能够滚动以更改语言
- 13. 双滚动条,但没有滚动
- 14. 更改TextBox中的滚动条位置?
- 15. 如何更改滚动条的颜色
- 16. 仅更改iframe的滚动条样式
- 17. 如何更改滚动条的颜色
- 18. 如何更改滚动条的步骤?
- 19. 重置ItemsSource上的滚动条更改
- 20. 更改ExtJs中的滚动条
- 21. 水平滚动+滚动条
- 22. 更改CSS滚动
- 23. 带滚动条的滚动FlowPanel滚动条
- 24. 没有滚动条
- 25. 完美的滚动条滚动的问题
- 26. 如何更改eclipse滚动条颜色
- 27. 更改滚动条背景IOS
- 28. TableLayoutPanel更改滚动条(C#WinForms)
- 29. 更改UITextView滚动条颜色
- 30. 更改iframe滚动条样式
工作,但滚动链接不工作,任何解决? – 2014-10-09 23:09:24
我不知道,对不起。 – GramThanos 2014-10-09 23:11:58
@ViruZX你是什么意思的“滚动链接”?通过哈希#滚动到元素? – Gromo 2014-10-10 11:11:41