responsive website design is not working on mobile phone

自闭症网瘾萝莉.ら 提交于 2020-01-06 05:02:06

问题


responsive design is not working on my mobile phone but its working fine on my pc or laptop i am working on this link (http://abisyscorp.com/modelview)

    <head>
<link rel="stylesheet"   href="css/style.css"/>
<link rel="stylesheet"  type="text/css" href="css/jquery-ui.css">
<meta name="viewport" content="max-width=480px">
<meta name="viewport" content="min-width=481px">
<meta name="viewport" content="min-width=1028px">
<script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>

<!--<script type="text/javascript" src="js/jquery-ui.js"></script>-->
<script type="text/javascript" src="js/jquery-ui.js"></script>
<script type="text/javascript" src="js/custom.js"></script>
<script type="text/javascript" src="js/detectmobilebrowser.js"></script>
<script src="js/tuchpunch.js"></script>
</head>

Css

css sheet link http://abisyscorp.com/modelview/css/style.css

@media tags in this site  

    @media screen and (max-width:480px){}
    @media screen and (min-width:481px){}
    @media screen and (min-width:1028px){}

回答1:


Add this to your <head> section:

<meta name="viewport" content="width=device-width, user-scalable=false;">

And remove:

<meta name="viewport" content="max-width=480px">
<meta name="viewport" content="min-width=481px">
<meta name="viewport" content="min-width=1028px">


来源:https://stackoverflow.com/questions/24776920/responsive-website-design-is-not-working-on-mobile-phone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!