1

I've decided to begin with websites for mobile devices. I'm using http://mobiletest.me to check how the website would look on mobile device, without actually using my mobile all the time to check. However, when I finally made 80% of work and wanted to check on my phone it displays the site on 100% width as a normal website not like an bigger one.

What is it I'm missing in my project to display it the right way? I have main container that holds all other divs inside. Maybe this might be the issue?

div#mobile-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}
4

2 回答 2

0

假设按设备大小,您的意思是设置视口:

<meta name="viewport" content="width=device-width">

将此添加到您的head标签中,它不会为您提供正常的网站大小。

于 2013-09-28T21:20:17.027 回答
0

添加也不会有害:

<meta name="HandheldFriendly" content="True" />
于 2013-09-29T11:20:03.860 回答