Responsive Design on a Samsung Galaxy S III Mini

I'm busy making an existing site responsive, currently I'm only making it responsive for one resolution so that my sales manager can "sell" the idea of a responsive site to the client. I've run into a problem, I've been assigned the screen size of 480px by 800px, the screen size of a Samsung Galaxy S III Mini.

When testing the responsive design on my computer using responsive design view in firefox or various other online tools, it works fine. However, when I test it on my phone, it displays the correct responsive design but it does not fill the width of the screen. In other words, the screen width is 480 pixels, but nothing on the page actually fills that 480px it only covers about half the screen width and leaves white space on the right.

This is the media query that I'm using:

@media only screen and (max-width : 480px),
only screen and (max-device-width : 480px){

Does this have something to do with pixel density or what is causing this problem?

Thanks in advance
Kind Regards
Willem


<meta name="viewport"> 

Have you looked into this tag? This changes the way the layout is zoomed/scaled on mobile browsers. You can look at what I found here: https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag . This example shows the problem you seem to be having. The "viewport" tag works in all mobile browsers, as far as I know, but you should check different browsers on the phone if this doesn't help you.


当所有宽度工作正常时,我遇到了同样的右侧白色问题,并通过关闭CSS中的溢出来解决它,如下所示......这可能会隐藏实际内容,因此您必须根据您的情况/布局进行测试......

html { overflow-x: hidden; }
链接地址: http://www.djcxy.com/p/60918.html

上一篇: 引导程序3滑入移动菜单/导航栏中

下一篇: 三星Galaxy S III Mini上的自适应设计