首页htmlsidebarPage Widget - 如何拉伸边栏到页面长度

Page Widget - 如何拉伸边栏到页面长度

我们想知道如何拉伸边栏到页面长度。

<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
#parentDiv {
  position: relative;
  border-style: solid;
  min-height: 700px;
}

#content {
  width: 300px;
}

#sidebar {
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  width: 100px;
  background-color: red;
}
</style>
</head>
<body>
  <div id="parentDiv">
    <div id="content">Content here....</div>
    <div id="sidebar"></div>
  </div>
</body>
</html>