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

原创
2015/05/12 19:12
阅读数 1.9K

<!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>
展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
打赏
0 评论
6 收藏
0
分享
返回顶部
顶部