Let a child according to the parent div div height highly adaptive

Click Upload when demand is sub-level div highly uncertain, relatively speaking parent div height can not be fixed, the elements are set to ordinary standard stream, then the style can be used within the margin margins or padding margins to be adjusted

 

 

 

 

 

 

 

 

 

Put the code for reference:

.opus_upload_img_body_third_div{
    background: #FFFFFF;
    width: 100%;
    margin-top: 12px;
    height: auto;
}
.opus_upload_img_body_header_div_span{
    font-size: 14px;
    color: #4393FD;
    padding-top: 14px;
    height: 32px;
    width: 100%;
    border-bottom: 1px solid #F4F4F4;
}
.opus_upload_img_body_third_div_form{
    width: 100%;
    margin-top: 14px;
    margin-left: 24px;
    padding-bottom: 14px;
}

Guess you like

Origin www.cnblogs.com/huchong-bk/p/12068790.html