html 标签之外的内容
我有一个网页,不需要滚动条,但我仍然得到一个滚动条。 我得到了 html 标签之外的部分。 正文有一个棕色部分颜色出现在 html 之外 我使用 firebug,当我将鼠标放在 html 标签上时,它会突出显示整个页面,除了 底部的棕色部分
页面网址 为 link
这里是一张图片,页面底部应该是黑色部分。
i have a webpage, scrollbar is not needed but still i get a scroll bar.
and i get a section which is outside of the html tags.
there is a brown part color of the body which appear outside of the html
i use firebug and when i put my mouse over the html tag it highlight the entire page except
the brown part at the bottom
the page url is link
here is a picture the page bottom should be the black part.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这里的问题是你的
。尽管您已经设置了overflow:hidden;,但您没有指定框的高度,因此它会愉快地向下滚动页面,包括远远超过常规内容的底部。
设置
height: 100px;
(或者您需要的大小),页面布局的其余部分将恢复正常。The trouble here is your
<div id="filter_list" class="dd_list">
. Although you've setoverflow: hidden;
you haven't given a height for the box, so it gleefully scrolls down the page, including well past the bottom of your regular content.Set
height: 100px;
(or however big you need it to be) and the rest of the page layout will return to normal.如果您希望黑条固定在底部,您可以将其位置设置为固定。
无论主体实际有多大,主体背景颜色都会延伸到浏览器的整个客户端区域。
我更改了你的CSS,将黑条放在页面底部:
你可以使用overflow:hidden来隐藏滚动条,但我不确定这是否是你在这种情况下真正想要做的。
If you want the black bar to be pinned to the bottom you could set its position to fixed.
The body background color will extend to the entire client area of the browser regardless of how big the body actually is.
I changed your css to put the black bar at the bottom of your page:
You can use overflow: hidden to hide the scroll bar, but I'm not sure that's really what you want to do in this case.
发现了“bug”。它是
#filter_list
。它有一堆 div 保存着...我猜是过滤器列表。一个简单的修复方法是
Found the "bug". It's
#filter_list
. It has a bunch of divs that hold... the filter list I guess.A simple fix would be