为什么flex和flex-grow会有这样的显示效果?
我推测:
1flex和flex-grow是两种不同的属性
2两者选择的底层默认基准或参考不同
但我不知道为什么,但我追问到底是为什么?
第一张图片的css代码:
```css
.item1{flex-grow:2; background-color: red;}
.item2{flex-grow:2; background-color: green;}
.item3{flex-grow:1; background-color: blue;}
浏览器显示效果图片:

第二张图片的css代码:
```css
.item1{flex-grow:2; background-color: red;}
.item2{flex-grow:2; background-color: green;}
.item3{flex:1; background-color: blue;}
浏览器显示效果图片:

代码总览:
<!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>
.container {
width: 1500px;
height: 1500px;
display: flex;
background-color: gray;
}
.item1,
.item2,
.item3 {width: 500px;height: 100px;}
.item1{flex:2; background-color: red;}
.item2{flex:2; background-color: green;}
.item3{flex:1; background-color: blue;}
</style>
</head>
<body>
<div class="container">
<div class="item1">1</div>
<div class="item2">2</div>
<div class="item3">3</div>
</div>
</body>
</html>