【问题标题】:Chrome developer tool doesn't change the site [closed]Chrome 开发者工具不会改变网站 [关闭]
【发布时间】:2020-10-30 15:19:37
【问题描述】:

我在使用 Google Chrome 开发者工具时遇到了一个非常奇怪的问题,当我尝试更换设备时,它“看起来”只是缩小了。

当我最小化浏览器窗口并手动将其缩小时,它可以正常工作,如下图所示:

css 改变了,一切都很好。

但是,当我使用开发者工具将其更改为移动设备时,实际上并没有发生任何事情:

为什么会这样?

我正在使用版本86.0.420.111

【问题讨论】:

    标签: html google-chrome google-developer-tools


    【解决方案1】:

    您需要在<head> 标记内的代码中添加以下内容。

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

    没有它,页面将无法在移动设备上响应。

    More info

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-26
      • 2020-06-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多