开发者

viewport width not working with android

I have searched a lot for making my site stretching 100% of the width and it worked but it just broke randomly. The site works find on the iPhone but it has issues with android phones. Oddly, the site extends further than the device width.

I am using <meta 开发者_StackOverflow社区name="viewport" content="width=device-width;" /> right now and the site is at mallsear.ch

Anyone have an idea? Thanks!

Edit: I have this in CSS too:

html{
    color: white;
    background: #1f1f1f;
    font-family: Futura;
    height:100%;
    width: 100%;
    max-width:800px;
    margin-left:auto;
    margin-right:auto;
}


So I finally found the problem. The <div id="fb-root"></div> in the Facebook connect stretched out the site and once I deleted it, it was fixed.

Hope this can help someone!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜