背景不覆盖一页上的网站 [英] Background not covering site on one page
问题描述
我在此网页上工作: http://www.myfortune3cart.com/journeyfilm/ cartadd.cgi
水平导航下方的背景不会继续到页脚。它在其他页面上工作:
http://www.myfortune3cart.com/journeyfilm /Products.html
The background below the horizontal navigation is not continuing down to the footer. It does work on other pages: http://www.myfortune3cart.com/journeyfilm/Products.html
我找不到要更改css的位置。
I can't find where to change the css.
shot:
Screen shot:
谢谢,
Matt
推荐答案
产品页面的背景扩展到页脚,因为有内容填充容器。在您的首页上,背景图片不会这样做,因为您没有足够的内容允许容器扩展到页脚。
What happening is on your Product page your background extends to the footer because there is content that fills the container. On your home page the background image does not do this because you dont have enough content to allow the container to extend to your footer.
因此,一旦您将内容添加到如果有足够的内容,容器会越来越靠近页脚。如果这不够好,你可以添加一个最小高度到你的内容容器,所以它总是触及你的页脚。我在 .page-right-container
中添加了 min-height:800px;
意图。你必须调整数字,以适合你想要的方式,但这应该让你开始。
So once you add your content to the home page the container will grow closer to the footer if there is enough content. If that is not good enough you can add a min-height to your content container so it always touches your footer. I added a min-height: 800px;
to your .page-right-container
and your content will show like you intended. You will have to adjust the number to fit exactly the way you want but that should get you started.
这篇关于背景不覆盖一页上的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!