App下載
首頁(yè)htmlflexCSS Layout - 如何webkit-flex-flow:row wrap;

CSS Layout - 如何webkit-flex-flow:row wrap;

我們想知道如何webkit-flex-flow:row wrap;

<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.container {
  max-width: 1200px;
  min-width: 270px;
  display: -webkit-flex;
  -webkit-flex-flow: row wrap;
  margin: 0 auto;
}

.container>* {
  min-height: 100px;
  -webkit-flex: 1 1 auto;
}

.logo {
  -webkit-flex: 0 1 500px;
}

.header {
  width: 100%;
}

.left {
  -webkit-flex: 0 1 200px;
}

.middle {
  min-width: 300px;
}

.right {
  -webkit-flex: 0 1 155px;
}

.logo {
  background: blue;
}

.header {
  background: red;
}

.left {
  background: yellow;
}

.middle {
  background: green;
}

.right {
  background: blue;
}
</style>
</head>
<body>
  <div class="container">
    <div class="logo">logo</div>
    <div class="header">header</div>
    <div class="left">left</div>
    <div class="middle">middle</div>
    <div class="right">right</div>
  </div>
</body>
</html>