我做了一些CSS和我张贴的结果有:如何以干净的方式将CSS移动到CSS上?
我想移动的小橙色和灰色div的。这样,它的正下方蓝色的。
我知道我可以使用position:absolute并将div移到我想要的任何位置,但这显然不是最好的方法。
我该怎么做?
这里是为那些5个格的CSS代码:
#alldivs {
width: 700px; margin: 0 auto; position: absolute; padding: 30px;
}
#green {
width: 400px; height: 350px; margin: 0px; float: left; background: green;
}
#blue { width: 300px; height: 250px; margin: 0px; float: right; background: blue;
}
#red { width: 400px; height: 200px; margin: 0px; float: left; background: red;
}
#orange {
width: 300px; height: 100px; float: right; background:orange;
}
#grey {
width:300px; height:200px; float:right; background:grey;
}
非常感谢
你能发布你的html吗? – Colleen 2012-03-06 06:45:11