我想用html和css設計下面的screenShot。我的代碼有問題,我不能像使用screenShot一樣移動div。附近的HTML設計div
HTML:
<html>
<head>
<title></title>
<style>
.box1{
border:1px solid;
width:200px;
height:100px;
float:right;
}
.box2{
border:1px solid;
width:200px;
height:100px;
float:right;
clear: right;
}
.box3{
border:1px solid;
width:200px;
height:100px;
float:right;
clear:none;
}
.box4{
border:1px solid;
width:200px;
height:100px;
float:right;
}
.box5{
border:1px solid;
width:200px;
height:100px;
float:right;
clear: right;
}
</style>
</head>
<body>
<div class='box1'></div>
<div class='box2'></div>
<div class='box3'></div>
<div class='box4'></div>
<div class='box5'></div>
</body>
</html>
http://jsbin.com/iyOnAPEw/1/粘貼jsbin你的代碼,使人們可以看到它現在更容易 – Joeytje50