-webkit-linear-gradient causes banding in Chrome/Safari

前端 未结 6 1817
别跟我提以往
别跟我提以往 2021-01-01 12:44

The title prettymuch says it all. The first picture below is a screenshot when the whole page is about 8000 pixels tall, taken in the latest version of Chrome:

6条回答
  •  爱一瞬间的悲伤
    2021-01-01 13:12

    Webkit render -webkit-gradient('linear'...) and webkit-linear-gradient in the same way. The problem is with your multiple backgrounds. I had same issue and I was ended with two different elements on top of each other and then giving a background to each of them. Something like:

    
     

    CSS

    body{-webkit-linear-gradient(...)}
        .body-overlay{background:url('blah.png')}
    

    I think this happens because the image have fixed amount of pixels

提交回复
热议问题