解决方法
这是一个工作示例:
jsfiddle
jsfiddle
HTML:
<div class="container"> <div class="first">first</div><div class="third">third</div> <div class="second">second</div><div class="fourth">fourth</div><div class="last">last</div> </div>
CSS:
html,body,.container { height: 100%; min-height: 100%; } .first { float: left; width: 20%; height: 30%; background-color: red; } .second{ float: left; width: 20%; height: 70%; background-color: green; } .third{ float: right; width: 80%; height: 80%; background-color: blue; } .fourth { float: right; width: 40%; height: 20%; background-color: #ddddDD; } .last{ float: right; width: 40%; height: 20%; background-color: yellow; }
原文地址:https://www.jb51.cc/css/218367.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。