<!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">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<div class="w3-sidebar w3-bar-block w3-light-grey" style="width:50%">
<div class="w3-container w3-dark-grey">
<h4>菜单</h4>
</div>
<img src="https://atts.w3cschool.cn/img_snowtops.jpg" alt="Snow" style="width:100%">
<a href="#" class="w3-bar-item w3-button w3-red">主页</a>
<a href="#" class="w3-bar-item w3-button">项目 <span class="w3-tag w3-red w3-right w3-margin-right">8</span></a>
<a href="#" class="w3-bar-item w3-button">关于</a>
<a href="#" class="w3-bar-item w3-button">联系</a>
<div class="w3-panel w3-blue-grey w3-display-container">
<span onclick="this.parentElement.style.display='none'" class="w3-button w3-blue-grey w3-display-topright">×</span>
<p>Lorem ipsum盒子...</p>
</div>
</div>
<div style="margin-left:50%">
<div class="w3-container">
<h2>侧边栏</h2>
<p>将任何元素放在侧边栏中。</p>
</div>