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. 滾輪滾動 - 滾動更改圖片
- 7. 滾動條在更改滾動值時不更新
- 8. 改善gridview的滾動性能
- 9. 沒有滾動條的jQuery滾動框
- 10. 沒有滾動條的滾動div
- 11. 沒有滾動條的視差滾動
- 12. 更改瀏覽器滾動條的可滾動高度
- 13. 更改鼠標滾動時的滾動條速度
- 14. 滾動窗口中的元素,該元素具有滾動條。
- 15. 具有固定標題和滾動問題的Datagrid滾動條
- 16. 如何使滾動條能夠滾動以更改語言
- 17. DataGrid滾動條在滾動過程中更改大小
- 18. 雙滾動條,但沒有滾動
- 19. 僅更改iframe的滾動條樣式
- 20. 更改div的左側滾動條
- 21. 如何更改滾動條的步驟?
- 22. 更改iframe中滾動條的顏色
- 23. 更改winforms中滾動條的大小
- 24. 更改html中的滾動條
- 25. 更改滾動條的顏色
- 26. 收聽ListView中的滾動條更改
- 27. 更改ExtJs中的滾動條
- 28. 重置ItemsSource上的滾動條更改
- 29. 如何更改滾動條的顏色
- 30. 更改TextBox中的滾動條位置?
工作,但滾動鏈接不工作,任何解決? – 2014-10-09 23:09:24
我不知道,對不起。 – GramThanos 2014-10-09 23:11:58
@ViruZX你是什麼意思的「滾動鏈接」?通過哈希#滾動到元素? – Gromo 2014-10-10 11:11:41