网站适合在平板电脑,视口不工作的屏幕上? [英] Website fit on screen for tablets, viewport not working?

查看:93
本文介绍了网站适合在平板电脑,视口不工作的屏幕上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经建立了一个带有opencart的网上商店,主题最初是响应式的。然而,所有者想要在所有平台上完全相同的网站,所以我只是删除了一个单独的responsive.css文件并解决了问题。但是,当我在平板电脑上打开网站时,我希望网站适合屏幕
。这不工作,但。我在我的页面标题中有:

I've built a webshop with opencart, with a theme that was originally responsive. However, the owner wanted exactly the same website on all platforms, so I simply removed a seperate responsive.css file and fixed the issue. However, I would like the website to fit on screen when I open it on my tablet. That isn't working though. I have this in the header of my page:

<meta name="viewport" content="width=device-width">

这不应该修复吗?谢谢!

Shouldn't that fix it? Thanks!

推荐答案

尝试:

<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">

它为我工作。

这篇关于网站适合在平板电脑,视口不工作的屏幕上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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