最小高度100%? [英] Min-Height 100%?

查看:108
本文介绍了最小高度100%?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要能够有一个包含内容的容器元素,以便随着内容的进行重复和展开,但是容器本身在两个元素之间,其中在某些情况下给予容器元素停止点

I want to be able to have a container element which contains the content to repeat and expand as the content goes on, but the container per se is in between two elements in which give heed of the container element "stopping" at some point.

您可以在以下位置查看设计:

You may view the design at:

http://www.noxinnovations.com/portfolio/charidimos/

我是什么想要做的是具有容器元素,其中包含要设置为100%的内容。

What I want to do is have the container element which contains the content to be set at 100%. So no matter what it will always be correct in size without a set size.

任何想法?

推荐答案

只要给身体一个 height:100%,你可以给你的容器一个 :100%,它会伸展。没有它的父有一个高度(身体,在这种情况下)它不会伸展。

As long as you give the body a height:100%, you can give your container a min-height:100% and it will stretch. Without it's parent having a height (the body, in this case) it won't stretch.

这篇关于最小高度100%?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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