スクロールするコンテンツはありませんでしたが、メニューの後ろには表示しないでください。 それは透明なので難しいです。ですから私はdivをマスクとして使用します。 しかし何らかの理由で私のコンテンツがスクロールすることができません。コンテンツはスクロールバーを表示しますが、スクロールできません
HTML:
<div class="title">
title
</div>
<div class="menu">
menu
<button class="btn">Foo</button>
</div>
<div class="content-mask">
<div class="asfsadf">
scroll content<br/>
scroll content<br/>
scroll content<br/>
scroll content<br/>
scroll content<br/>
</div>
</div>
CSS:
.title {
position: fixed;
top: 0;
}
.menu {
position: fixed;
top: 20px;
border: 1px solid black;
}
.content-mask {
position: fixed;
top: 40px;
overflow: scroll;
}
.content {
}
body {
background-image: url("https://pbs.twimg.com/media/ChtN47lVAAAQWD1.jpg:large");
}
https://jsfiddle.net/clankill3r/34Lf1mke/