首页htmlsidebarPage Widget - 如何创建左侧边栏

Page Widget - 如何创建左侧边栏

我们想知道如何创建左侧边栏。

<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.fixed-sidebar {
  top: 0px;
  left: 0px;
  width: 12%;
  color: white;
  background: #CCC;
  height: 100%;
  position: absolute;
}

.offset-content {
  border: solid red 0px;
  width: 68%;
  height: 100%;
  background: orange;
  color: black;
  margin-left: 300px;
  float: right;
}
</style>
</head>
<body>
  <div class="fixed-sidebar">Hello</div>
  <div class="offset-content">Hello</div>
</body>
</html>