简体   繁体   English

滚动条可见,但不会向下滚动页面

[英]Scrollbar visible but it won't scroll down the page

I have a website which uses 100% width and I accidentally removed the scrollbar. 我有一个使用100%宽度的网站,但我不小心删除了滚动条。

When I coded back in the scrollbar it's visible but will not scroll down the page. 当我在滚动条中重新编码时,它是可见的,但不会向下滚动页面。 I have the CSS code and the script. 我有CSS代码和脚本。 What other code do I need to get the scrollbar to scroll down the page? 要使滚动条向下滚动页面,还需要什么其他代码?

Here is my existing code within my page: 这是我页面中现有的代码:

Site link: http://www.hgcarpentryandjoinery.com/MXJGTV/Index1.html 网站链接: http : //www.hgcarpentryandjoinery.com/MXJGTV/Index1.html

Please go to the above address and right click and view source code because I don't know how to use this site. 请转到上面的地址,然后右键单击并查看源代码,因为我不知道如何使用此站点。

You gave the body position:fixed; 您给了身体position:fixed; . That property makes it so the body cannot be scrolled. 该属性使其无法滚动主体。 Delete that line and your problem should be fixed. 删除该行,您的问题应该得到解决。

There's an inline position: fixed in the body tag. 有一个内联position: fixed在body标签中。 Remove it and fix the whole code because it's pretty messy 删除它并修复整个代码,因为它很乱

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM