Blogger Information
Blog 3
fans 0
comment 0
visits 4636
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
flex 实现三列布局
Original
2910 people have browsed it
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      * {
        margin0;
        padding0;
        box-sizingborder-box;
      }
      .header {
        border2px dashed violet;
      }
      .header:first-of-type ul {
        list-style-typenone;
        displayflex;
        justify-contentspace-around;
      }
      ul > li {
        padding0 20px;
      }
      .cationer {
        border2px dashed red;
        marginauto;
        displayflex;
        flex-directionrow;
        justify-contentspace-around;
        height400px;
      }
      .left {
        background-colorlightgreen;
        flex-grow1;
        order3;
      }
      .content {
        background-colorlightpink;
        flex-grow3;
        order2;
      }
      .right {
        background-colormagenta;
        flex-grow1;
        order1;
      }
      .footer {
        border2px dashed darkorange;
        text-aligncenter;
      }
    </style>
  </head>
  <body>
    <div class="header">
      <ul>
        <li>首页</li>
        <li>导航</li>
        <li>列表</li>
      </ul>
    </div>
    <div class="cationer">
      <div class="left">左栏</div>
      <div class="content">内容</div>
      <div class="right">右栏</div>
    </div>
    <div class="footer">Flex布局</div>
  </body>
</html>1597295819(1).jpg


Correcting teacher:天蓬老师天蓬老师

Correction status:qualified

Teacher's comments:作业要有标题, 代码中要有注释, 作业后面要有总结, 下次记得补上, 如果懒得写,可以不写作业,如果要写就必须按要求写..., 作业是公开发布的文章 , 任何人都可看到的, 你想一下这样的文章 能否帮到其它人?
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post