网页滚动超出页面内容的末尾 - 为什么? [英] web page scrolls beyond the end of the page content - why?

查看:69
本文介绍了网页滚动超出页面内容的末尾 - 为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为Expression Web 3的新用户, 我还没弄清楚为什么我创建的某些页面会继续滚动到远低于页面末尾的位置。内容

As a new user of Expression Web 3,  I have not yet been able to figure out why some of the pages I create continue to scroll far below the end of the page's  content

,而其他页面则没有。 我创建了一个居中容器,然后用CSS文本/图像框填充它。 要使他们进入所需的布局位置, 我一直

while other pages do not.  I create a centering container, then populate it with CSS text/image boxes.  To muscle them into the desired layout position,  I have been

指定一个CSS框大小,顶部和左侧坐标,z-index, 并将位置指定为"relative"。   在某些页面上,但不是全部, 这会在查看时在页面底部导致过多的滚动

specifying a CSS box size, top and left coordinates, z-index,  and specifying position as "relative."    On some pages, but not all,  this results in too much scroll

功能。  我可以阻止背景重复,< style> body {background-repeat:no-repeat;}< / style>但我不希望

ability at the bottom of the page when viewed.   I can stop the background from repeating, <style>body{background-repeat:no-repeat;}</style> but I don't want

观众能够滚动到底部页脚之外。 这是怎么做的?

the viewer to be able to scroll beyond the bottom footer.  How is that done?

推荐答案

如果页面超出页脚,用户可以在页脚之外滚动的唯一方法。如果您需要更多帮助,我们需要查看您的网页。 发布它们并发布一个链接。

The only way a user can scroll beyond the footer is if the page extends beyond the footer. If you want more help than that, we need to see your pages.  Publish them and post a link.

但是,作为一般规则:使用边距,填充,浮动和清除定位元素,如果内容包含,则不指定宽度和高度文本。很少需要Z-index和position。

As a general rule, however: Position elements using margins, padding, floats and clears, and do not specify both width and height if the contents include text. Z-index and position are rarely needed.


这篇关于网页滚动超出页面内容的末尾 - 为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆