<div class="container">
<section><h2>Привет. Это секция 1</h2><div class="mouse"></div></section>
<section><h2>Привет. Это секция 2</h2></section>
<section><h2>Привет. Это секция 3</h2></section>
<section><h2>Привет. Это секция 4</h2></section>
<section><h2>Привет. Это секция 5</h2></section>
</div>
要使块高度等于设备窗口高度,请以 vh 为单位指定高度:
阅读更多:相对单位 vh、vw、vmin、vmax
我可以假设你正在计划这个: