工作 jsFiddle 演示
HTML
<div id="container">
<div id="sidebar">
Content in div2.
</div>
<div id="content">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aspernatur, sequi, non mollitia ducimus eaque commodi iure vel quos ipsam hic voluptatem tempore facere quo dolorum magnam incidunt porro quis culpa.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aspernatur, sequi, non mollitia ducimus eaque commodi iure vel quos ipsam hic voluptatem tempore facere quo dolorum magnam incidunt porro quis culpa.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aspernatur, sequi, non mollitia ducimus eaque commodi iure vel quos ipsam hic voluptatem tempore facere quo dolorum magnam incidunt porro quis culpa.</p>
</div>
</div>
CSS
#container {
background-color: #fff;
border: 1px solid #ff0000;
height: 100px;
overflow: hidden;
width: 200px;
position: relative;
}
#content {
position: absolute;
top: 0;
right: 0;
bottom: 0;
background-color: pink;
width: 100px;
overflow: auto;
}
#sidebar {
position: absolute;
top: 0;
left: 0;
bottom: 0;
background-color: #ccc;
width: 100px;
}