[英]What is “User stylesheet” in Google Chrome's developer tools?
我了解user agent stylesheet
但是即使我的Chrome个人资料中的User Stylesheets
中没有Custom.css
,我也Custom.css
在开发人员工具的“样式”部分中的某些特定网站上看到user stylesheet
。
These "User stylesheet"s are added by Chrome extensions, either declared in a manifest file , or using chrome.tabs.insertCSS
. 这些“用户样式表”由Chrome扩展程序添加,可以在清单文件中声明 ,也可以使用chrome.tabs.insertCSS
。
Styles on the web page always take precedence over the user stylesheet, unless the rule set in the (extension's) user stylesheet has a higher specifity . 网页上的样式始终优先于用户样式表,除非(扩展名)用户样式表中设置的规则具有更高的特异性 。
If you want to know which extension is responsible for these stylesheets, just disable the extensions one by one until the stylesheet goes away. 如果您想知道哪个扩展负责这些样式表,只需逐个禁用扩展,直到样式表消失。 After disabling an extension, select a different element in the inspector, then select the original element to refresh the view, you don't have to reload the page. 禁用扩展后,在检查器中选择其他元素,然后选择原始元素以刷新视图,而不必重新加载页面。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.