码迷,mamicode.com
首页 > Web开发 > 详细

HTML_后台框架全屏界面_fixed形式布局

时间:2015-05-12 21:10:27      阅读:168      评论:0      收藏:0      [点我收藏+]

标签:

技术分享

<!DOCTYPE html>
<html>
<head>
 <meta charset="UTF-8">
 <title>Document</title>
 <style>
  html, body {
   width:100%;
   height:100%;
   padding: 0;
   margin: 0;

   background-color: #f3f3f3;
   font-family: "Hiragino Sans GB",\5FAE\8F6F\96C5\9ED1,Tohoma;;
 }

 .top{
  position: fixed;
  height: 80px;
  width: 100%;
  background-color: red;
}
.mid{
  position: fixed;
  margin-top: 80px;
  height: 100%;
  width: 100%;
  background-color: blue;
  min-width: 960px;
}
.left{
  float: left;
  height: 100%;
  width: 220px;
  background-color: green;
  overflow-y:auto;
  direction: rtl;
  unicode-bidi: embed;
  text-align: left;
}
.right{
  margin-left: 220px;
  height: 100%;
  background-color: orange;
  overflow-y:auto;
}
</style>


</head>
<body>
  <div class="top">top</div>
  <div class="mid">
    <div class="left">
      <p>left</p><p>left</p><p>left</p><p>left</p><p>left</p><p>left</p><p>left</p><p>left</p><p>left</p><p>left</p><p>left</p><p>left</p><p>left</p><p>left</p><p>left</p><p>left</p><p>left</p><p>left</p><p>left</p><p>left</p><p>left</p><p>left</p><p>left</p><p>left</p><p>left</p><p>left</p><p>left</p><p>left</p><p>left</p><p>left</p><p>left</p>
    </div>
    <div class="right">
    <p>right</p><p>right</p><p>right</p><p>right</p><p>right</p><p>right</p><p>right</p><p>right</p><p>right</p><p>right</p><p>right</p><p>right</p><p>right</p><p>right</p><p>right</p><p>right</p><p>right</p><p>right</p><p>right</p><p>right</p><p>right</p><p>right</p><p>right</p><p>right</p><p>right</p><p>right</p><p>right</p><p>right</p><p>right</p><p>right</p>
    </div>
  </div>
</body>
</html>

HTML_后台框架全屏界面_fixed形式布局

标签:

原文地址:http://my.oschina.net/miaowang/blog/413930

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!