[英]Responsive design working on desktop browser, on mobile-simulator (both Safari and Mozilla Firefox), but not on a real smartphone (Android, iOS)
I tried several lines of code, but I just can't figure out where I went wrong since it's working on a desktop and it SHOULD work on mobile devices as well... 我尝试了几行代码,但是我无法弄清楚哪里出了问题,因为它可以在台式机上工作,并且也应该在移动设备上工作...
<meta name="viewport" content="width=device-width, initial-scale=1, maximum- scale=1, user-scalable=no"</>
and in css: 并在CSS中:
@media (max-device-width: 640px) {}
http://codepen.io/ctrprt253/pen/QNaVdP http://codepen.io/ctrprt253/pen/QNaVdP
Thx in advance. 提前谢谢。
change your code to 将您的代码更改为
@media (max-width:640px){ ... }
It will be solved your problem 它将解决您的问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.