手机中的CSS响应式设计无法正常工作 [英] css responsive design in mobile is not working

查看:78
本文介绍了手机中的CSS响应式设计无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个html文件以在任何设备中响应. 在PC中,当我调整浏览器大小时,它会完全响应.但是当我在手机上测试时不是. 链接在这里. http://cutetheme.net/resp/ 谢谢

I create a html file to be responsive in any device. in pc when i resize the browser is fully responsiv. but when i test in mobile it is not. here is the link. http://cutetheme.net/resp/ thank you

推荐答案

将此添加到您的head标签中

Add this in your head tag

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

这篇关于手机中的CSS响应式设计无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆