为了账号安全,请及时绑定邮箱和手机立即绑定

一个三列margin布局

一个三列margin布局

西兰花伟大炮 2017-03-27 23:48:45
<!DOCTYPE html> <html>     <head>         <meta charset="UTF-8">         <title></title>         <style>             html,body{margin: 0;height: 100%;}                 /*不加html会出现中间内容区域高度塌陷*/             .left, .right{                 float: left;                 height: 100%;                 width: 200px;             }             .left{background-color: #FF8C00;margin-left: -100%;}             .right{background-color: lightpink;margin-left: -200px;}             .far-box{width: 100%;height: 100%;float: left;}             .son-box{margin: 0 210px;background-color: #1E90FF;height:100%;}         </style>     </head>     <body>         <div class="far-box">             <div class="son-box">我是内容部分</div>         </div>                  <div class="left">我是左边部分</div>         <div class="right">我是右边部分</div>              </body> </html>这个布局的原理有点不懂,详细解释一下
查看完整描述

1 回答

已采纳
?
田心枫

TA贡献1064条经验 获得超383个赞

又在装!html+css  有啥不懂的?

查看完整回答
反对 回复 2017-03-27
  • 1 回答
  • 0 关注
  • 1301 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信