简体   繁体   English

Chrome开发者工具 - 无法编辑样式属性

[英]Chrome Developer Tools - Can't Edit Styles Properties

I'm experiencing an unusual issue in Chrome Developer Tools and am unsure if I pressed a shortcut or something. 我在Chrome开发者工具中遇到了一个不寻常的问题,我不确定是否按下了快捷方式或其他内容。

My issue is that whenever I try and edit a CSS property I can only press a single key after clicking into the property and it immediately exits from the property. 我的问题是,每当我尝试编辑CSS属性时,我只能在点击属性后按一个键,它会立即退出该属性。

For example, the styles pane might include something like below: 例如,样式窗格可能包含如下内容:

#test-id {
  height: 100px;
}

Usually, you can click on the '100px' entry and use your up arrow to increase the value. 通常,您可以单击“100px”条目并使用向上箭头来增加值。 Or type a new value, ect. 或者输入新值,等等。

However, if I click into the property and press any key it submits that single key and my cursor exits the property. 但是,如果我单击该属性并按任意键,它会提交该单个键,我的光标将退出该属性。

Did I press something like num lock (tried it..) that is causing this? 我是否按下了像num lock(试过它......)这样的东西?

There's not much info here, so I'll list out things to try, and then you can reply in the comments whether or not that helped. 这里的信息不多,所以我会列出要尝试的内容,然后你可以在评论中回复是否有帮助。 I'll update my answer after each comment. 我会在每次评论后更新我的答案。

First things first, open up an incognito window ( cmd + shift + n on mac, ctrl + shift + n on windows / linux) and try to reproduce the behavior. 首先,打开一个隐身窗口( cmd + shift + n在mac上, ctrl + shift + n在windows / linux上)并尝试重现行为。 If this solves the problem, then some setting or extension in your Chrome profile is messing with DevTools. 如果这样可以解决问题,那么Chrome配置文件中的某些设置或扩展程序会破坏DevTools。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM