zoukankan      html  css  js  c++  java
  • 学习日报

    学习内容:可视化大屏布局

    代码示例:

    main.html

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>疫情监控</title>
    <link href="../static/css/main.css" rel="stylesheet" />
    <style>

    </style>
    </head>
    <body>
    <div id="title">全国疫情实时追踪</div>
    <div id="time">我是时间</div>
    <div id="l1">我是左1</div>
    <div id="l2">我是左2</div>
    <div id="c1">我是中1</div>
    <div id="c2">我是中2</div>

    <div id="r1">我是右1</div>
    <div id="r2">我是右2</div>
    </body>
    </html>

    main.css

    body{
    margin: 0;
    background: #333;
    }
    #title{
    position: absolute;
    40%;
    height: 10%;
    top: 0;
    left: 30%;
    /*background: #666666;*/
    color: white;
    font-size: 30px;

    display: flex;
    align-items: center;
    justify-content: center;
    }
    #time{
    position: absolute;
    30%;
    height: 10%;
    top: 0;
    right: 0;
    background: #00FFFF;
    }
    #c1{
    position: absolute;
    40%;
    height: 30%;
    top: 10%;
    left: 30%;
    background: #777777;
    }
    #c2{
    position: absolute;
    40%;
    height: 60%;
    top: 40%;
    left: 30%;
    background: #888888;
    }
    #l1{
    position: absolute;
    30%;
    height: 45%;
    top: 10%;
    left: 0;
    background: #666666;
    }
    #l2{
    position: absolute;
    30%;
    height: 45%;
    top:55%;
    left: 0;
    background: #777777;
    }
    #r1{
    position: absolute;
    30%;
    height: 45%;
    top: 10%;
    right: 0;
    background: #666666;
    }
    #r2{
    position: absolute;
    30%;
    height: 45%;
    top: 55%;
    right: 0;
    background: #777777;
    }

    运行截图:

  • 相关阅读:
    [Redis]在.NET平台下的具体应用
    [Redis]在Windows下的下载及安装
    【重读MSDN之ADO.NET】ADO.NET连接
    贪心
    树状数组
    并查集
    模拟
    kruskal
    树链剖分
    匈牙利算法
  • 原文地址:https://www.cnblogs.com/zyj3955/p/14587843.html
Copyright © 2011-2022 走看看