首页 > Web开发 > 详细

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

时间:2015-05-12 21:10:12      阅读:234      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!