<!DOCTYPE html>charset="utf-8"W3Cschool教程(w3cschool.cn).flex-container {display: -webkit-flex;display: flex;width: 400px;height: 250px;background-color: lightgrey;}.flex-item {background-color: cornflowerblue;margin: 10px;}.item1 {-webkit-flex: 2;flex: 2;}.item2 {-webkit-flex: 1;flex: 1;}.item3 {-webkit-flex: 1;flex: 1;}