Background-attachment: fixed not working on android/mobile

后端 未结 1 1505
既然无缘
既然无缘 2020-12-31 22:14

I\'m developing a cordova app and I\'m trying to get a fixed background. Unfortunately, it doesn\'t seem to be working, and anytime I scroll down the background simply goes

相关标签:
1条回答
  • 2020-12-31 22:48

    Have you tried this?

    
        html, body {
            height: 100%;
        }
        html {
            overflow-y: hidden;
        }
        body {
            overflow-y: scroll;
            background-color:#000000;
            background-image:url('../img/bg_reader.jpg');
        }
    
    
    0 讨论(0)
提交回复
热议问题