在检查元素时,Chrome开发者工具会缩小屏幕 [英] Chrome Dev Tool Shrinks screen when inspecting an element

查看:154
本文介绍了在检查元素时,Chrome开发者工具会缩小屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个开发人员.站点来最终替换现有站点,并且每当我检查一个元素时,页面主体就会缩小到页面左半部分的三分之一.滑块也会随机发生,其中的图像有时仅显示在一半的页面上.如果刷新页面,它将进行更正,直到再次检查元素为止.这使得无法在该站点上工作,并且我已禁用了该主题并转到了股票主题,并且逐个禁用了插件,以试图找出导致此故障的原因,而我尚未确定可能导致此故障的原因问题.我该如何解决?

I am creating a dev. site to eventually replace an existing site and every time I inspect an element the body of the page shrinks down to a third of the left half of the page. It is also happening randomly with the slider where the image shows on only half the page from time to time. If I refresh the page it corrects it until I inspect an element again. It is making it impossible to work on this site and I have disabled the theme and gone to a stock theme as well as one by one disabled plugins trying to figure out what is causing this glitch and I have yet to determine what could be causing this issue. How can I fix it?

推荐答案

如果您使用的是chrome开发工具(假设dev-tools窗口与chrome分开打开,而不是在同一窗口中),我猜是您的设备工具栏可能会被切换.

If you're using chrome dev tools (assuming the dev-tools window opens separate from chrome, not in the same window) my guess is that your device toolbar may be toggled.

单击此按钮可将其关闭,因为它用于在不同屏幕尺寸下测试您的网站,并且每当您检查某些内容时,屏幕可能会缩小.

Click this to turn it off, as it's used to test your site on a different screen sizes and could be shrinking your screen whenever you inspect something.

这篇关于在检查元素时,Chrome开发者工具会缩小屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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