简体   繁体   English

网站在某些手机中没有响应

[英]Site not responsive in some mobile phones

We have a one-page site, built responsively, and in most phones it appears responsive. 我们有一个单页的网站,响应性地构建,在大多数手机中它看起来很敏感。 However, in some smart phones it's just zoomed out. 然而,在一些智能手机中,它只是缩小了。 It seems to be caused by an image in the middle (4 grey boxes with colored dots between them) being much wider than the width of the phone, and we don't understand why. 它似乎是由中间的图像(4个灰色框,它们之间有彩色点)比手机的宽度宽得多,我们不明白为什么。

This is the it's supposed to look (and does look in most mobile browsers): 这应该是它看起来(并且在大多数移动浏览器中看起来):

在此输入图像描述

And this is the way it looks in some mobile browsers (all zoomed out, the image stretching the site): 这是它在某些移动浏览器中的外观(全部缩小,图像拉伸网站):

在此输入图像描述

We of course used the tag 我们当然使用了标签

<meta name="viewport" content="width=device-width, initial-scale=1">

What could be causing the difference? 可能导致差异的原因是什么?

I think you don't need the scale, the scale is for zooming, if you use media screen you can make your site responsible on every mobile, if you need that your site will be supported on every mobile you can use (example): 我认为您不需要比例尺,比例尺用于缩放,如果您使用媒体屏幕,您可以在每部手机上对您的网站负责,如果您需要在您可以使用的每部手机上支持您的网站(示例):

<!--[if lt IE 9]> <- this is the code for supporting

in this example the code will only give the website extra support by internet explorer 9 在这个例子中,代码只会给网站提供Internet Explorer 9的额外支持

<!--[if lt IE 9]>
<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
<![endif] -->

things what different brwosers support 不同的brwosers支持的东西

those are very nice (example): @media screen and (max-width: 980px) { 那些非常好(例子):@ media screen和(max-width:980px){

tutorial 教程

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM