我有一个<div>
名为 bigbox ,其中包含一个<div>
名为 wrapper 。包装器包含 2 个<div>
称为文本框和复选框。如果文本框内的字符溢出,它不会将另一个包装推到下面。我怎样才能让下面的包装下降?
这是jsfiddle:http: //jsfiddle.net/WA63P/
<html>
<head>
<title>Page</title>
<script type="text/javascript" src="jquery-1.9.1.min.js"></script>
<style type="text/css">
.bigbox {
background-color: #F5E49C;
color: #000;
padding: 0 5px;
width:280px;
height:500px;
position: absolute;
text-align: center;content: "";display: block;clear: both;
}
.box {
background-color: #272822;
color: #9C5A3C;
height:100px;
width:260px;
margin-bottom: 10px;
position: relative; top:10px;
}
.textbox
{
background-color: #FFFFFF;
color: #272822;
height:100px;
width:160px;float:left;text-align: left
}
.checkbox
{
background-color: #FFFFFF;
height:50px;
width:50px;
float:right;
d
}
</style>
<div class="bigbox">
<div class="box">
<div class="textbox">background background background background background background background background background background background background background background background background background background background background background background </div>
<div class="checkbox"> </div>
</div>
<div class="box">
<div class="textbox"> </div>
<div class="checkbox"> </div>
</div>
</body>
</html>