Redraw page border on scroll
问题 My webpage content is centered in the middle using auto margin and has a black border on both sides (left and right). If I scroll down, the border doesn't update. So if I scroll down a bit the border will only reach half way down. How do i fix this? Edit: The height of the content div is set to 100% and on initial load the border does go all the way down, this problem only occurs when scrolling. 回答1: The height of the content div is set to 100% This is likely your problem. Because you've set