<!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-red" style="width:25%">
<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>
</div>
<div style="margin-left:25%">
<div class="w3-container w3-dark-grey">
<h1>我的页面</h1>
</div>
<div class="w3-container">
<p>使用w3-color类更改边栏的背景颜色。</p>
<p>如果您想要一个活动/当前链接,要让用户知道他/她在哪个页面上,请将w3-color类也添加到其中一个链接中。</p>
</div>
</div>
</body>
</html>