简体   繁体   English

Chrome开发者工具中还会显示其他CSS吗?

[英]Additional CSS appearing in Chrome Developer Tools?

Every website I open in Chrome, including ones I've written myself, have the following bit of HTML/CSS at their base when viewed in Developer Tools. 在开发人员工具中查看时,我在Chrome中打开的每个网站(包括我自己编写的网站)都具有以下HTML / CSS。

<style>
.tb_button {padding:1px;cursor:pointer;border-right: 1px solid #8b8b8b;
     border-left: 1px solid #FFF;border-bottom: 1px solid #fff;}
.tb_button.hover {borer:2px outset #def; background-color: #f8f8f8 !important;}
.ws_toolbar {z-index:100000} .ws_toolbar 
.ws_tb_btn {cursor:pointer;border:1px solid #555;padding:3px}   
.tb_highlight{background-color:yellow} .tb_hide {visibility:hidden} 
.ws_toolbar img {padding:2px;margin:0px}
</style>

Here's a screenshot: 这是屏幕截图:

在此处输入图片说明

This code is not visible if you View Source. 如果您查看源代码,则此代码不可见。 Where is it coming from? 它来自哪里?

It's probably a chrome extension. 这可能是Chrome扩展程序。

To confirm, disable all of your chrome extensions in chrome://extensions (you will have to copy/paste or type this into the url bar). 要确认,请禁用chrome:// extensions中的所有chrome扩展名(您必须将其复制/粘贴或在网址栏中输入)。

This is the style sheet info for the overlay buttons in the Chrome Extension "Webpage Screenshot". 这是Chrome扩展程序“网页截图”中叠加按钮的样式表信息。

If you disable it, you'll see this go away. 如果禁用它,您将看到此消失。 It's the toolbar popup style information for selecting a region where you can snip, draw on, and save directly on top of the page via a browser rendered overlay. 这是工具栏弹出样式信息,用于选择一个区域,您可以在该区域中通过浏览器呈现的叠加图直接在页面顶部进行剪裁,绘制和保存。

The most likely culprit is an extension that you have installed. 最可能的罪魁祸首是您已安装的扩展程序。

Extensions (with the correct permissions) are allowed to modify every page you visit and make arbitrary changes to the DOM, including injecting CSS. 扩展(具有正确的权限)被允许修改您访问的每个页面,并对DOM进行任意更改,包括注入CSS。

Use Incognito mode and/or disable your extensions to verify this. 使用隐身模式和/或禁用扩展程序以验证这一点。

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

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