English 中文(简体)
我们网站的CSS内容区正在发展,但不应如此。
原标题:CSS content area of our site is scrolling when it should not

因此,问题在于我有一张头盔、脚.和内容干.,而我想的是内容干 d,以自动填满头部和脚步之间浏览器的高度,使脚步停留在页底或低于内容长度。

http://incard.com.au”rel=“nofollow”_incard.com.au 你们可以在索引网页上看到这个问题,因为内容领域较小,而浏览器窗口则更小,因此,我们增加了四级顶,以解决脚步浮动问题。

I fixed it using jquery

$( #sitewidth ).css({ height :(($(document).height())-320)+ px });
        $( #contentbody ).css({ height :(($(document).height())-320)+ px });
最佳回答

I was able to fix the solution by using Javascript, it seems that to get the height of the content to fit the whole screen correctly I had to do a math thing where I took the height of the footer and header away from the browser screen size and then that gave me the min-size of my content body. as it is different on each users screen size it had to be a javascript set function.

问题回答

摘除中间物:700px

So what is supposed to happen when the browser window is smaller than the height of the div?

你们可以把中部的高度定为100%。 例如,使内容达到100%,使上下层固定高度。 这是一种黑板,但有时我会认为——100%赢得固定顶和底层高压——它“试图”达到100%。

我不清楚的是,当你使浏览器窗户缩小时,应该发生什么。 head头和脚 the是否应该留在 your子顶和底部,而内容区则较小?

我看到的唯一问题是,内容所在每一边的 o边界在内容没有到达脚步时停止半途。

解决这一问题的最常见办法是使这些 o成为一种背景形象,并在<条码>内重复使用。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签