CSS,自动调整大小div? [英] CSS, auto resize div?

查看:96
本文介绍了CSS,自动调整大小div?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用CSS设计一个布局,我有一个主容器(div)和两个内部容器(div_upper和div_lower)。假设我想调整大小div_upper和div_lower将自动调整大小本身和两个div仍然适合在主容器。我相信这可以在javascript中完成,但有没有任何CSS来完成这个?

I'm trying to design a layout with css, I got one main container(div) and two inner container(div_upper and div_lower). let say I want to resize div_upper and div_lower will automatically resize itself and both divs still fit in the main container. I'm sure this can be done in javascript, but is there any CSS to accomplish this? if so I would be glad.

推荐答案

也许 A List Apart 网站上的conflictingabsolutepositions =nofollow noreferrer>此博客可以帮助您在正确的方向。

Maybe this blogpost on the A List Apart website will help you in the right directions.

这篇关于CSS,自动调整大小div?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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