zoukankan      html  css  js  c++  java
  • css flex布局实现后台页面

    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>flex布局实现后台页面</title>
    <style type="text/css">
    *{
        margin:0;
        padding:0;
    }
    .frame-header {
        height: 60px;
        background-color: #23262E;
    }
    .frame-body {
        position: fixed;
        top: 60px;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        flex-direction: row;
    }
    .frame-side {
        scrollbar-width: none; /* firefox隐藏滚动条 */
        -ms-overflow-style: none; /* IE 10+隐藏滚动条 */
        overflow-x: hidden;
        overflow-y: auto;
        width: 200px;
        background-color:#393D49;
    }
    .frame-side::-webkit-scrollbar {
      display: none; /* Chrome Safari 隐藏滚动条*/
    }
    .frame-main {
        flex-grow: 1;
        background-color:#666;
    }
    </style>
    </head>
    
    <body>
      <div class="frame-header">
       <h1 style="color:#FFF">header</h1>
      </div>
      <div class="frame-body">
          <div class="frame-side">
            <ul style="text-align:center;">
                <li><a href="main.html" target="main">首页</a></li>
                <li><a href="main.html" target="main">链接1</a></li>
                <li><a href="main.html" target="main">链接2</a></li>
                <li><a href="main.html" target="main">链接1</a></li>
                <li><a href="main.html" target="main">链接2</a></li>
                <li><a href="main.html" target="main">链接1</a></li>
                <li><a href="main.html" target="main">链接2</a></li>
                <li><a href="main.html" target="main">链接1</a></li>
                <li><a href="main.html" target="main">链接2</a></li>
                <li><a href="main.html" target="main">链接1</a></li>
                <li><a href="main.html" target="main">链接2</a></li>
                <li><a href="main.html" target="main">链接1</a></li>
                <li><a href="main.html" target="main">链接2</a></li>
                <li><a href="main.html" target="main">链接1</a></li>
                <li><a href="main.html" target="main">链接2</a></li>
                <li><a href="main.html" target="main">链接1</a></li>
                <li><a href="main.html" target="main">链接2</a></li>
                <li><a href="main.html" target="main">链接1</a></li>
                <li><a href="main.html" target="main">链接2</a></li>
                <li><a href="main.html" target="main">链接1</a></li>
                <li><a href="main.html" target="main">链接2</a></li>
                <li><a href="main.html" target="main">链接1</a></li>
                <li><a href="main.html" target="main">链接2</a></li>
                <li><a href="main.html" target="main">链接1</a></li>
                <li><a href="main.html" target="main">链接2</a></li>
                <li><a href="main.html" target="main">链接1</a></li>
                <li><a href="main.html" target="main">链接2</a></li>
                <li><a href="main.html" target="main">链接1</a></li>
                <li><a href="main.html" target="main">链接2</a></li>
                <li><a href="main.html" target="main">链接1</a></li>
                <li><a href="main.html" target="main">链接2</a></li>
                <li><a href="main.html" target="main">链接1</a></li>
                <li><a href="main.html" target="main">链接2</a></li>
    
            </ul>
        </div>
        <div class="frame-main">
            <!-- 内容主体区域 -->
            <iframe name="main" src="main.html" width="100%" height="100%" frameborder="0"></iframe>
        </div>
      </div>
    </body>
    </html>
  • 相关阅读:
    简单项目却持着一颗纠结的心
    一个简单的打的系统
    ftqghkwiNdrpid快速建项Sql语句生
    3/21 Django框架 模板路径及模板过滤器 1.模板路径查找
    3/19 Django框架 url路由配置及模板渲染
    3/18 Django框架 启动django服务
    3/16 Django框架 环境搭建
    Windows子系统配置,cmder配置, pycharm配置django开发环境
    Requests+正则表达式抓取猫眼电影TOP100
    分析Ajax抓取今日头条街拍美图
  • 原文地址:https://www.cnblogs.com/a2b1/p/15433873.html
Copyright © 2011-2022 走看看