即时消息面临一个问题,我需要一些建议。 我想有几个主要的div容器可以说将许多不同的div元素放在右边,每个元素的高度和宽度都是100%(全屏)
<div class="main">
彼此的权利。
- 所有主容器应该有全宽和全高(全屏)。
- 在右边,我需要一些其他主容器的大小和宽度的前者。
是否可以将div设置为相互正确,而无需使用javascript读取和设置?有没有一个CSS/HTML解决方案?
例子:
<div class="main"><!--to the right one more -->
</div>
<div class="main"><!--to the right one more -->
</div>
<div class="main">
</div>
风格:#这不工作...
.main{
width:100%;
height:auto;
float: right;
}
能否请您重新提供您的示例代码 - 我想你ま在输入时出现错误,在你的问题中没有显示 – wheresrhys 2012-02-17 12:41:00
use style = display:inline for your div – 2012-02-17 12:41:06
@wheresrhys我编辑了例子...感谢您的帮助 – Jurudocs 2012-02-17 12:48:20