类为liebuju的元素高度坍塌,解决高度坍塌的四种方法都试过,没用,怎么解
*{ margin: 0; padding: 0; } .hangbuju{ width: 100%; height: auto; } .header{ width: 100%;/*自适应*/ height: 50px; background-color: black; color: white; text-align: center; line-height: 50px; } .banner{ width: 100%; height: 400px; background-color: green; text-align: center; padding-top:50px; } .content{ width: 800px;/*固定宽*/ height: 1000px; background-color: yellow; margin: 0 auto; text-align: center; } .footer{ width: 100%; height: 50px; color: white; text-align: center; line-height: 50px; background-color: black; } .liebuju{ width: 100%; height: 1000px; padding-top: 50px; float: left; } .left{ width: 25%; height: 1000px; float: left; background-color: red; } .middle{ width: 50%; height: 1000px; float: left; background-color: blue; } .right{ width: 25%; height: 1000px; background-color: green; float: right; } 三行布局
banner
内容区
foot |
免责声明:本内容仅代表回答会员见解不代表天盟观点,请谨慎对待。
版权声明:作者保留权利,不代表天盟立场。
|
|
|
|