在我的源代码中,我有以下代码:
<style>
/*Twenty Twelve fixes and other theme fixes and styles :( */
.flex-caption {
background: #000;
-ms filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#4C000000,endColorstr=#4C000000);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#4C000000,endColorstr=#4C000000);
zoom: 1;
}
/*...*/
</style>
这不在我的个人 CSS 文件中,我不知道这是从哪里提取的。
我正在按照 Wordpress Codex 链接到我的外部 CSS 文件,以包含如下样式表:
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" />
我需要做什么才能删除此 CSS?
编辑*
现在已经修复了。
最佳答案
看起来您是从 WordPress 的 TwentyTwelve 主题开始的,还是从它继承并从那里进行更改的另一个主题开始的。如果您查看 /wp-content/themes/head.php
,我认为您可能会在其中找到令人反感的样式。
关于css - 源代码中不需要的 CSS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13956131/