Chrome开发人员工具 - (索引)样式表在哪里? [英] Chrome Developer Tools - Where is the (index) stylesheet?

查看:122
本文介绍了Chrome开发人员工具 - (索引)样式表在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在修改基于WordPress的网站的主题,'新主题具体。尽管我更改了主题选项 - style.css 文件和 custom.css 文件,但我无法更改颜色。

然后我使用Chrome的开发工具来检查我的规则被覆盖的位置。重写规则在(index)文件中,括号中。在网上没有相关信息的时候,我决定稍后再看看。

几个小时后,我所做的所有修改都已经完成,现在它显示了新的颜色。但我仍然对这个(index)文件感到好奇。它是一个脚本添加的规则?

解决方案

它可能嵌入在HTML中的CSS( style 标签在头部中),或者作为标记的一部分,或者通过JS动态添加(或者在页面呈现时可能由PHP添加)。 p>

需要更多信息才能给出比这更具体的答案。


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?

解决方案

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.

这篇关于Chrome开发人员工具 - (索引)样式表在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆