父div里position设置为absolute;子div里的position设置为fixed,然后通过例如left ,bottom设置相对位置
<div style="height:100%;width:100%;background-color: rgb(40,40,41,0.3);position: absolute;">
<div style="height: 50px;width:80%;margin:auto;text-align: center;color: white;position:fixed;bottom: 20px;left:10%">
</div>
<div>