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

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-23 10:16:25

问题


I was modifying a theme for a WordPress based site, the Anew theme to be specific. Although I changed the theme options - style.css file and custom.css file, I couldn't change the color of the links.

Then I used Chrome's Developer Tools to check where my rules were overridden. The overriding rule was on an (index) file, with parenthesis. 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. Is it a script-added rule?


回答1:


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).

Need more info to give any answer more specific than that.




回答2:


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.



来源:https://stackoverflow.com/questions/21195081/chrome-developer-tools-where-is-the-index-stylesheet

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!