1. The clear in CSS has four parameters:
None: Allows both sides to float.
Left: does not allow floating on the side.
Right: Do not allow floating on the left.
Both (default); floating is not allowed.
2, at the beginning of the CSS in the clear float is the default both, that is, in the beginning can not be floating.
3, use of the case: Suppose I clear the third Div floating
<style type= "Text/css" >
div{
border:1px solid red;
Float:left;
Clear:none;
}
#msg_Div {
width:600px;
height:600px;
}
. one{
width:100px;
height:90px;
}
. two{
width:100px;
height:90px;
}
. three{
width:100px;
height:90px;
Clear:left;
}
. four{
width:100px;
height:90px;
}
. five{
width:100px;
height:90px;
}
</style>
<body>
<div id= "Msg_div" >
<div class= "One" ></div>
<div class= "both" ></div>
<div class= "three" ></div>
<div class= "Four" ></div>
<div class= "Five" ></div>
</div>
</body>
Effect:
CSS Clear Clear floating