简体   繁体   English

响应式设计可在桌面浏览器,移动模拟器(Safari和Mozilla Firefox)上运行,但不能在真正的智能手机(Android,iOS)上运行

[英]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.

相关问题 iOS Safari Javascript 不工作,但在桌面和 Android 上工作 - iOS Safari Javascript not working but works on Desktop and Android Android智能手机上的自适应设计不适合屏幕 - Responsive design on android smartphone not fitting to screen 脚本仅适用于 Chrome 和 Firefox 桌面,不适用于 Safari 和任何移动浏览器 - Script works only on Chrome and Firefox Desktop, and not works on Safari and any mobile browser 剪贴板(剪切/复制)在Mozilla Firefox浏览器中不起作用 - Clipboard (cut/copy) is not working in Mozilla Firefox browser 在桌面浏览器和移动Safari上关闭的处理方式不同? - closures handled differently on desktop browser and mobile safari? Facebook comment.create无法在移动设备上触发-iOS Safari和Android浏览器 - Facebook comment.create not firing on mobile - ios Safari and android browser 自适应网页设计在台式机上运行,​​但不在移动设备上运行,因此不会加载CSS和JavaScript - Responsive web design is working on desktop but not on mobile device it wont load CSS and JavaScript 在chrome和mozilla firefox浏览器中均无法从DhtmlxGrid复制文本 - Not able to copy text from DhtmlxGrid in both chrome and mozilla firefox browser 在响应式设计中放大浏览器被推断为移动设备 - Zooming in browser being inferred as Mobile in responsive design Javascript(JS)应用程序可在Chrome上运行,但不能在mozilla firefox / safari上运行 - Javascript (JS) application working on Chrome but not on mozilla firefox/safari
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM