为什么移动视图与桌面视图不匹配?

时间:2017-10-06 18:21:19

标签: html mobile google-chrome-devtools

我有一个HTML文档,请说:

<p>
    lorem ipsum
</p>

在我的电脑中它看起来像这样:
 desktop

但是,从手机上看: mobile

如果您点击图片,您会在移动视图中看到它看起来缩小了。我使用chrome-dev-tools来模拟移动视图(但在我的手机中它是相同的)并检查元素我看到html内容有980 X 1742像素,当它应该有360 X 640 PX。
dev-tools

这是我的电脑使用chrome-dev-tools。有人可以告诉我如何解决这个问题,或者至少我做错了什么?或者这就是假设它来自移动设备?

1 个答案:

答案 0 :(得分:1)

   >>> import re
   >>> dir(re)
   ['DEBUG', 'DOTALL', 'I', 'IGNORECASE', 'L', 'LOCALE', 'M', 'MULTILINE', 'S', 'Scanner', 'T', 'TEMPLATE', 'U', 'UNICODE', 'VERBOSE', 'X', '_MAXCACHE', '__all__', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '__version__', '_alphanum', '_cache', '_cache_repl', '_compile', '_compile_repl', '_expand', '_locale', '_pattern_type', '_pickle', '_subx', 'compile', 'copy_reg', 'error', 'escape', 'findall', 'finditer', 'match', 'purge', 'search', 'split', 'sre_compile', 'sre_parse', 'sub', 'subn', 'sys', 'template']

尝试添加此内容。

相关问题