<title>编程狮(w3cschool.cn)</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://7npmedia.w3cschool.cn/w3.css">
<div class="w3-container">
<p>使用CSS宽度属性来确定列的特定宽度.</p>
<div class="w3-col w3-green w3-container" style="width:20%"><p>20%</p></div>
<div class="w3-col w3-blue w3-container" style="width:60%"><p>60%</p></div>
<div class="w3-col w3-red w3-container" style="width:20%"><p>20%</p></div>
<div class="w3-col w3-green w3-container" style="width:45%"><p>45%</p></div>
<div class="w3-col w3-dark-grey w3-container" style="width:55%"><p>55%</p></div>
<div class="w3-col w3-green w3-container" style="width:15%"><p>15%</p></div>
<div class="w3-col w3-dark-grey w3-container" style="width:35%"><p>35%</p></div>
<div class="w3-col w3-red w3-container" style="width:10%"><p>10%</p></div>
<div class="w3-col w3-blue w3-container" style="width:30%"><p>30%</p></div>
<div class="w3-col w3-purple w3-container" style="width:10%"><p>10%</p></div>