Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用flex布局实现三列等分效果 #45

Open
zhuguly-zz opened this issue Jul 2, 2020 · 0 comments
Open

使用flex布局实现三列等分效果 #45

zhuguly-zz opened this issue Jul 2, 2020 · 0 comments

Comments

@zhuguly-zz
Copy link
Owner

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>flex 三列等分</title>
  <style>
    .header, .footer {
      background: lightblue;
    }
    .main {
      display: flex;
      
    }
    .aside1 {
      flex: 1;
      background: pink;
    }
    .aside2 {
      flex: 1;
      order: 1;
      background: yellow;
    }
    .content {
      flex: 1;
      background: lightgreen;
    }
  </style>
</head>
<body>
  <main class="main">
    <div class="aside1">aside1</div>
    <div class="aside2">aside2</div>
    <div class="content">内容内容内容内容内容内容内容内容
内容内容内容内容内容内容内容内容
内容内容内容内容内容内容内容内容</div>
  </main>
</body>
</html>

题目来自饥人谷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant