页面高度 [英] page height
问题描述
大家好,
我正在一个网站上工作,我有一个宽度为90%的容器,其中所有页眉页脚和内容区域都来了。我的页脚有一个小问题我有更多的内容,页脚下降,这是好的。但是当我有非常小的内容说5行,页脚出现这是主要问题。当内容少于页面高度我希望页脚在底部页面..有什么方法可以做到这一点。还有一些最小高度或类似的东西。
谢谢,
Pradeep
Hello guys,
I am working on a site where in i have a container of width 90% within which all header footer and content area comes.I have a small problem with footer that is when i have content more the footer goes down which is ok.but when i have very small content say 5 lines the footer comes up this is the main problem.when the content is less then a page height i want the footer to be at the bottom of the page..is there any way to do this .say some min-height or something like that.
Thanks,
Pradeep
推荐答案
有没有办法做到这一点。包括一些最小高度或类似的东西。
is there any way to do this .say some min-height or something like that.
这里有min-height css属性(尽管IE< 7在那里失败了)。值可以是长度或百分比。
there''s the min-height css property (though IE < 7 fails there). values may be of length or percentage.
这里有min-height css属性(尽管IE< 7在那里失败) 。值可以是长度或百分比。
there''s the min-height css property (though IE < 7 fails there). values may be of length or percentage.
i无法设置百分比..我想在%bcos中设置以支持所有浏览器..如何操作
i am not able to set in percentages ..i want to set in % bcos to support all browsers..how to do it
% - 定义元素的最小高度,以%b为单位包含
% - Defines the minimum height for the element in % of the containing block
for min-height要使用%,你需要一个容器元素(例如体),从中计算最小高度(但显然你需要一个数值来设置容器高度本身)。所以你不能在父元素的边框上拉伸一个%-defined元素(你也不能伸展父元素,分别是。)
注意:同样的去高度
for min-height to work with % you need a container element (e.g. body) from which the min-height is calculated (but obviously you need a numeric value to set the containers height itself). So you can''t stretch a %-defined element over the parent element''s border (you also can''t stretch the parent itself, resp.)
note: same goes for height
这篇关于页面高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!