By the whole width, you mean the whole page? if that's what you want then
.shadow{background-color: rgba(0, 255, 0, 0.25); width:100%;position:absolute}
is what you're looking for
Edit: Oh, and don't forget to add width:100% to the other elements too
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…