Thin gray/black lines on web page viewed with iPad

后端 未结 11 2218
南旧
南旧 2020-12-13 22:07

We\'re finding the the iPad is displaying thin grey/black lines on our site. It seems to be some form of scaling-artefact on mobile Safari. I\'ve provided two snippets of

11条回答
  •  不思量自难忘°
    2020-12-13 22:16

    I was having this same issue with 1px lines showing up in desktop browsers and on the iPad and iPhone.

    Here was my old css:

    html,body {
    
    background:url(images/bg.jpg);
    height:100%;
        background-color:#E8E8E8;
    text-align:center;
    text-decoration:none;
    width:auto;
    
    }
    

    My new css:

    html,body {
    
    background:url(images/bg.jpg);
    height:100%;
    text-align:center;
    text-decoration:none;
    width:auto;
    
    }
    

    Removing "background-color:" has fixed this problem with all of my sites.

提交回复
热议问题