Extend background gradient across body without background-attachment: fixed
问题 I want to have a background gradient, e.g. background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(2, 126, 174, 0.9)) on the body of my document which extends across the entire height of the body - and scrolls with the body. Using background-attachment: fixed; I get the entire height (of the viewport), but it, well, stays fixed. background-attachment: scroll; gets me the scrolling, but then it just extends across the viewport height. Any way to get both? Edit: As Boltclock pointed out