Home > Article > Web Front-end > css floating problem_html/css_WEB-ITnose
ef063bec93c7d2fd366870dafe54b63b
68dcb78b415f8735e9b97fd010e275b7
16b28748ea4df4d9c2150843fecfba68
16b28748ea4df4d9c2150843fecfba68
#a{
height:auto!important;
Height:800px;
min-height:800px;
width:1015px;
margin:0 auto;
border:1px solid #B10000;
}
#b{
height:auto!important;
height:600px;
min-height:600px;
width:831px;
border:1px solid #DFDFDF;
float:left;
}
Could you please tell me how can I make b open when the content of b is larger than 800px?
Please add Div OK, as long as it can be stretched.
What does opening a mean above?
a.width = b.width 215?
does not mean, it is the height
Only set min-height:800px;,,, height in a. Do not write. . .
#a{ height:auto!important; height:800px; min-height:800px;width:1015px; margin:0 auto; border:1px solid #B10000;overflow:auto;}
#a{
height:auto!important;
Height:800px;
min-height:800px;
width:1015px;
margin:0 auto;
border:1px solid #B10000;
overflow:auto;
}
Specifications are important!
There is floating, shouldn’t it be cleared?
Clear the float and the problem is solved. There is no need to write overflow or anything like that.