<!DOCTYPE html>
<html>
<head>
<title>W3.CSS(w3cschool.cn)</title>
<meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
<link rel="stylesheet" href="https://7npmedia.w3cschool.cn/w3.css">
</head>
<body>
<div class="w3-sidebar w3-bar-block w3-large w3-light-grey" style="width:30%">
<a href="#" class="w3-bar-item w3-button">链接 1</a>
<a href="#" class="w3-bar-item w3-button">链接 2</a>
<a href="#" class="w3-bar-item w3-button">链接 3</a>
<a href="#" class="w3-bar-item w3-button w3-padding-16">填充</a>
<a href="#" class="w3-bar-item w3-button w3-padding-24">填充</a>
<a href="#" class="w3-bar-item w3-button w3-padding-32">填充</a>
</div>
<div style="margin-left:30%">
<div class="w3-container">
<h2>边栏尺寸</h2>
<p>使用任何w3-small,w3-large,w3-xlarge,w3-xxlarge类来更改边栏的字体大小。</p>
<p>如果您想要更多填充,请向每个项目添加w3-padding 类。</p>
</div>
</div>
</body>
</html>