移动浏览器的反应灵敏的造型 [英] Anti-responsive styling for mobile browser

查看:207
本文介绍了移动浏览器的反应灵敏的造型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为适合桌面访问者的网站制作了一个设计。

I have made a design for a website that is adapated for desktop visitors.

自然地,对于移动访问者,细节变得非常小。

Naturally, for mobile visitors, the details get very small.

但我想保持这样,我不想让移动浏览器尝试放大网站,但保留全宽。

But I want to keep it like that, I don't want the mobile browser to try to zoom in on the website but retain the full width.

这是什么关键?

What is key to accomplish this?

推荐答案

这应该是你想要的。将它放在< head>< / head>

This should be what your looking for. Place it within the <head></head>

<meta name="viewport" content="width=1024, user-scalable=no">

将content =设置为网站的大小或您想要的大小

set the content="" to whatever the size of the site is or what you would like it to be

这篇关于移动浏览器的反应灵敏的造型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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