我在一个容器中有块,可以在它们的容器中拖动。也可以向南重新调整大小。默认位置是 7 个 div 的并排。它们都应该位于容器的顶部,但相反,它们在 x 轴上一个在另一个之下。我无法弄清楚这一点,非常感谢任何帮助。这是一个jsFiddle来演示问题和下面的 html/css。谢谢你。
#calCon {
height:400px;
width:700px;
border:1px solid grey;
margin:0px;
}
.date {
width:98px;
height:30px;
border:1px solid blue;
background-color:green;
position:relative;
top:0px;
}
<div id = "calCon">
<div class = "date" style = "left:0;">cell 0</div>
<div class = "date" style = "left:100px;">cell 1</div>
<div class = "date" style = "left:200px;">cell 2</div>
<div class = "date" style = "left:300px;">cell 3</div>
<div class = "date" style = "left:400px;">cell 4</div>
<div class = "date" style = "left:500px;">cell 5</div>
<div class = "date" style = "left:600px;">cell 6</div>
</div>