如何将这3个Div标签放在一个Div容器中 [英] How can I fit this 3 Div tags in one Div container
本文介绍了如何将这3个Div标签放在一个Div容器中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嘿伙计们,
我正在尝试适应这3张图片,现在已经是晚上了,我还是不能让它合适。
请看图像这是我想要发生的事情: http:// s13.postimg.org/l3m2bw6rb/div_problem.png [ ^
这是另一个链接:
[IMG] http://i39.tinypic.com/2d6wcw6 .png [/ IMG]
谢谢,
推荐答案
我这样做了:
div1,使用浮动左边
div2,使用浮动权
div3 ,使用位置相对。
虽然我注意到当我删除div1中的bgcolor时,div2在div1的位置延伸它的颜色。除此之外,其他2个div保持在它的位置,即使它被移除了bgcolor。
I did this:
div1, use float left
div2, use float right
div3, use position relative.
although I noticed that when i remove the bgcolor in the div1, the div2 extends it's color on div1's place. Other than that the other 2 div stays on it's position even with it's bgcolor removed.
这篇关于如何将这3个Div标签放在一个Div容器中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文