你好,我的美丽窥视。标题与列表重叠
标题“无论”重叠在我的名单上。
我希望列表出现在标题后面。
<div style="width:1024px;height=auto;position:absoulte;min-height:768px;">
<div class="heading">
<h1>Whatever</h1>
</div>
<div class="list" id="listID" >
<div style="height:15px;">Nope</div>
<div style="height:15px;">Yes</div>
<div style="height:15px;">Maybe</div>
<div style="height:15px;">Definetely</div>
</div>
<button>Print</button>
<button style="posititon:relative;top:0px;">add</button>
</div>
,这是CSS
.heading
{
position:relative;
top:50px;
}
.list
{
position:relative;
min-height:10px;
top:0px;
margin-left:20px;
}
帮我个忙。谢谢:)
为什么没有顶级的工作? – ArvindSadasivam 2014-08-30 14:17:14
top只会移动元素,但不会影响页边空白处的布局。 – 2014-08-30 14:20:28
哦,我不知道...非常感谢... – ArvindSadasivam 2014-08-31 05:29:45