简体   繁体   English

Chrome开发者工具 - (索引)样式表在哪里?

[英]Chrome Developer Tools - Where is the (index) stylesheet?

I was modifying a theme for a WordPress based site, the Anew theme to be specific. 我正在修改基于WordPress的网站的主题Anew主题是具体的。 Although I changed the theme options - style.css file and custom.css file, I couldn't change the color of the links. 虽然我更改了主题选项 - style.css文件和custom.css文件,但我无法更改链接的颜色。

Then I used Chrome's Developer Tools to check where my rules were overridden. 然后我使用Chrome的开发人员工具来检查我的规则被覆盖的位置。 The overriding rule was on an (index) file, with parenthesis. 最重要的规则是在(index)文件上,带括号。 With no relevant information on the internet, I decided to take a look at it later. 由于互联网上没有相关信息,我决定稍后再看一下。

After some hours, all my changes were committed and now it shows the new color. 几个小时后,我的所有更改都已提交,现在它显示了新的颜色。 But I am still curious about this (index) file. 但我仍然对这个(index)文件感到好奇。 Is it a script-added rule? 它是一个脚本添加规则吗?

It is probably CSS embedded in the HTML ( style tags in the head ), either as part of the markup or added dynamically via JS (or possibly by PHP when the page is rendered). 它可能是嵌入在HTML中的CSS( head style标记),可以作为标记的一部分,也可以通过JS动态添加(或者在呈现页面时由PHP动态添加)。

Need more info to give any answer more specific than that. 需要更多信息来提供比这更具体的答案。

When you see index it means the page you're on. 当您看到索引时,它表示您所在的页面。 The CSS is directly embedded into the page instead of in a separate file. CSS直接嵌入到页面中而不是单独的文件中。

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

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