CSS flex属性
要在单个属性中设置flex-grow,flex-shrink和flex-basis属性,请使用CSSflex属性
示例
<!DOCTYPE html>
<html>
<head>
<style>
.mycontainer {
display: flex;
background-color: orange;
}
.mycontainer > div {
background-color: white;
text-align: center;
line-height: 40px;
font-size: 25px;
width: 100px;
margin: 5px;
}
</style>
</head>
<body>
<h1>Quiz</h1>
<div class = "mycontainer">
<div>Q1</div>
<div>Q2</div>
<div>Q3</div>
<div style = "flex: 20 0 350px">Q4</div>
<div>Q5</div>
<div>Q6</div>
<div>Q7</div>
<div>Q8</div>
<div>Q9</div>
</div>
</body>
</html>热门推荐
8 天仙配简短祝福语
10 国庆节日简短祝福语
11 完成预算祝福语简短精辟
12 高考成绩出祝福语 简短
13 给女儿生日简短祝福语
14 俄语随口祝福语简短版
15 市场经理生日祝福语简短
16 送给表姐中秋祝福语简短
17 破五的祝福语简短
18 元旦英文祝福语大全简短